wupee 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/wupee/install/templates/wupee.rb +1 -4
- data/lib/wupee.rb +6 -0
- data/lib/wupee/version.rb +1 -1
- data/spec/dummy/config/initializers/wupee.rb +1 -4
- data/spec/dummy/log/test.log +10356 -0
- data/spec/models/notification_type_spec.rb +6 -0
- metadata +2 -2
@@ -30,6 +30,12 @@ RSpec.describe Wupee::NotificationType, type: :model do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
context "class methods" do
|
34
|
+
it "has a method create_configurations_for which creates NotificationTypeConfiguration objects" do
|
35
|
+
expect { create :notification_type, name: "random_notif_type_2" }.to change { Wupee::NotificationTypeConfiguration.count }.by(User.count)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
33
39
|
context "associations" do
|
34
40
|
it "destroys notification_type_configurations on destroy" do
|
35
41
|
expect { notification_type.destroy! }.to change { Wupee::Notification.count }.by(-1)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wupee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peng DU
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|