Commit 43ee2771 authored by Felix Schäfer's avatar Felix Schäfer Committed by Felix Schäfer

JournalDetails don't exist anymore.

parent ff431e8e
...@@ -208,10 +208,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase ...@@ -208,10 +208,8 @@ 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
...@@ -232,10 +230,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase ...@@ -232,10 +230,8 @@ 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment