JournalDetails don't exist anymore.
This commit is contained in:
parent
ff431e8ed4
commit
43ee27715a
|
@ -208,12 +208,10 @@ class IssueNestedSetTest < ActiveSupport::TestCase
|
||||||
issue3.save!
|
issue3.save!
|
||||||
|
|
||||||
assert_difference 'Issue.count', -2 do
|
assert_difference 'Issue.count', -2 do
|
||||||
assert_difference 'Journal.count', -1 do
|
assert_difference 'Journal.count', -3 do
|
||||||
assert_difference 'JournalDetail.count', -1 do
|
|
||||||
Issue.find(issue2.id).destroy
|
Issue.find(issue2.id).destroy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
issue1.reload
|
issue1.reload
|
||||||
issue4.reload
|
issue4.reload
|
||||||
|
@ -232,12 +230,10 @@ class IssueNestedSetTest < ActiveSupport::TestCase
|
||||||
leaf.save!
|
leaf.save!
|
||||||
|
|
||||||
assert_difference 'Issue.count', -2 do
|
assert_difference 'Issue.count', -2 do
|
||||||
assert_difference 'Journal.count', -1 do
|
assert_difference 'Journal.count', -3 do
|
||||||
assert_difference 'JournalDetail.count', -1 do
|
|
||||||
Issue.find(child.id).destroy
|
Issue.find(child.id).destroy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
root = Issue.find(root.id)
|
root = Issue.find(root.id)
|
||||||
assert root.leaf?, "Root issue is not a leaf (lft: #{root.lft}, rgt: #{root.rgt})"
|
assert root.leaf?, "Root issue is not a leaf (lft: #{root.lft}, rgt: #{root.rgt})"
|
||||||
|
|
Loading…
Reference in New Issue