notifiable-rails 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/notification.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/notification_spec.rb +9 -0
- data/spec/test_app/log/test.log +1630 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b9758bcbfa68e1152383edd4993b474339b9c32
|
4
|
+
data.tar.gz: 3fce69e3fb495368fe940af16d66868eccfbe5b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9677fca0b6053c6519a11092cb55cdd9a5b51f5964542a4909fb62d2404c3b458479723e20816809c30360844c19d7af665a45cac70f29407e8f21aefa9d95
|
7
|
+
data.tar.gz: 68b4ad53c80151e34483083756c273da2b9a01d46ab52d600e284ff89aedeb6f4899a260a92fada36a3079b74a6a10cc308d8cbe70aa2a5aede377b3f7689b24
|
data/lib/notifiable/version.rb
CHANGED
data/spec/notification_spec.rb
CHANGED
@@ -14,4 +14,13 @@ describe Notifiable::Notification do
|
|
14
14
|
Notifiable::Notification.first.params.should == {:custom_property => "A different message"}
|
15
15
|
end
|
16
16
|
|
17
|
+
it "destroys dependent NotificationStatuses" do
|
18
|
+
n = Notifiable::Notification.create :params => {:custom_property => "A different message"}
|
19
|
+
Notifiable::NotificationStatus.create :notification => n
|
20
|
+
|
21
|
+
n.destroy
|
22
|
+
|
23
|
+
Notifiable::NotificationStatus.count.should == 0
|
24
|
+
end
|
25
|
+
|
17
26
|
end
|