Fixes a test failure due to a default custom field value.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3509 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
551993d3c2
commit
1ab77ee015
|
@ -534,13 +534,11 @@ class IssueTest < ActiveSupport::TestCase
|
||||||
def test_saving_twice_should_not_duplicate_journal_details
|
def test_saving_twice_should_not_duplicate_journal_details
|
||||||
i = Issue.find(:first)
|
i = Issue.find(:first)
|
||||||
i.init_journal(User.find(2), 'Some notes')
|
i.init_journal(User.find(2), 'Some notes')
|
||||||
# 2 changes
|
# initial changes
|
||||||
i.subject = 'New subject'
|
i.subject = 'New subject'
|
||||||
i.done_ratio = i.done_ratio + 10
|
i.done_ratio = i.done_ratio + 10
|
||||||
assert_difference 'Journal.count' do
|
assert_difference 'Journal.count' do
|
||||||
assert_difference 'JournalDetail.count', 2 do
|
assert i.save
|
||||||
assert i.save
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
# 1 more change
|
# 1 more change
|
||||||
i.priority = IssuePriority.find(:first, :conditions => ["id <> ?", i.priority_id])
|
i.priority = IssuePriority.find(:first, :conditions => ["id <> ?", i.priority_id])
|
||||||
|
|
Loading…
Reference in New Issue