notify_user 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/notify_user/base_notifications_controller.rb +1 -1
- data/app/models/notify_user/apns.rb +1 -1
- data/app/models/notify_user/base_notification.rb +4 -0
- data/lib/notify_user/channels/apns/apns_channel.rb +6 -0
- data/lib/notify_user/version.rb +1 -1
- data/spec/dummy/rails-4.0.4/log/test.log +4456 -0
- data/spec/models/notify_user/notification_spec.rb +6 -0
- metadata +1 -1
@@ -12,6 +12,12 @@ module NotifyUser
|
|
12
12
|
BaseNotification.channel(:apns, {aggregate_per: false})
|
13
13
|
end
|
14
14
|
|
15
|
+
describe "notification count" do
|
16
|
+
it "returns the sent count for a user" do
|
17
|
+
notification.count_for_target.should eq 1
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
15
21
|
describe "params" do
|
16
22
|
|
17
23
|
it "doesn't fail if searching for param variable that doesn't exist" do
|