destroyed_at 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/destroyed_at.rb +1 -1
- data/lib/destroyed_at/version.rb +1 -1
- data/test/destroyed_at_test.rb +6 -0
- data/test/test_helper.rb +1 -1
- 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: 28d8c5c555222b4e7e45c3a782e60b7026970c37
|
4
|
+
data.tar.gz: 7f343f2ec3da1c7baec08b06c2433a29a2ab0fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 068490e630e8dd369dc013ffa5e5ac9a44cae31bbd88d4e080b1621154dd85da503783d3bf1fd9bb082dbcff97d1079d98561a6b27760ff2782681fbee7bd22f
|
7
|
+
data.tar.gz: 9f4f2b3dccba9fa4046039e055ed1726d159dea30f4781aac80ab29e1fceea3570e631a74867e94afbd8808da4767a3eeda772c11041aa4dc01a2c8895b2facc
|
data/lib/destroyed_at.rb
CHANGED
data/lib/destroyed_at/version.rb
CHANGED
data/test/destroyed_at_test.rb
CHANGED
@@ -124,4 +124,10 @@ describe 'Destroying AR models' do
|
|
124
124
|
user.restore
|
125
125
|
user.before_save_count.must_equal nil
|
126
126
|
end
|
127
|
+
|
128
|
+
it 'skips validations on restore' do
|
129
|
+
user = User.create(nil_attribute: '123')
|
130
|
+
user.destroy
|
131
|
+
user.restore.must_equal true
|
132
|
+
end
|
127
133
|
end
|
data/test/test_helper.rb
CHANGED