notify_user 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|