soft_deletion 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/soft_deletion/dependency.rb +1 -1
- data/lib/soft_deletion/version.rb +1 -1
- data/spec/soft_deletion_spec.rb +7 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/spec/soft_deletion_spec.rb
CHANGED
@@ -310,6 +310,13 @@ describe SoftDeletion do
|
|
310
310
|
@forum.should_not be_deleted
|
311
311
|
end
|
312
312
|
|
313
|
+
it "does not fail if dependent associations are not deleted" do
|
314
|
+
@forum.soft_undelete!
|
315
|
+
undelete!
|
316
|
+
@forum.reload
|
317
|
+
@forum.should_not be_deleted
|
318
|
+
end
|
319
|
+
|
313
320
|
it "does not restore far previous deletions" do
|
314
321
|
@forum.update_attributes(:deleted_at => 1.year.ago)
|
315
322
|
undelete!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soft_deletion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -54,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
segments:
|
56
56
|
- 0
|
57
|
-
hash: -
|
57
|
+
hash: -840754898484082462
|
58
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
59
|
none: false
|
60
60
|
requirements:
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
segments:
|
65
65
|
- 0
|
66
|
-
hash: -
|
66
|
+
hash: -840754898484082462
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
69
|
rubygems_version: 1.8.25
|