JournalDetails don't exist anymore.
This commit is contained in:
parent
ff431e8ed4
commit
43ee27715a
|
@ -208,10 +208,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase
|
|||
issue3.save!
|
||||
|
||||
assert_difference 'Issue.count', -2 do
|
||||
assert_difference 'Journal.count', -1 do
|
||||
assert_difference 'JournalDetail.count', -1 do
|
||||
Issue.find(issue2.id).destroy
|
||||
end
|
||||
assert_difference 'Journal.count', -3 do
|
||||
Issue.find(issue2.id).destroy
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -232,10 +230,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase
|
|||
leaf.save!
|
||||
|
||||
assert_difference 'Issue.count', -2 do
|
||||
assert_difference 'Journal.count', -1 do
|
||||
assert_difference 'JournalDetail.count', -1 do
|
||||
Issue.find(child.id).destroy
|
||||
end
|
||||
assert_difference 'Journal.count', -3 do
|
||||
Issue.find(child.id).destroy
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue