diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-28 10:48:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-28 10:48:35 +0000 |
commit | 1ab77ee01548d637ca089327db204fa923e765de (patch) | |
tree | 2b97101acea73ca65bbaaae5c89cfe21208595e7 | |
parent | 551993d3c2aa9266f3c0c90b4f18525b1a377104 (diff) | |
download | redmine-1ab77ee01548d637ca089327db204fa923e765de.tar.gz redmine-1ab77ee01548d637ca089327db204fa923e765de.zip |
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
-rw-r--r-- | test/unit/issue_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 71bec4f12..24442b5d4 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -534,13 +534,11 @@ class IssueTest < ActiveSupport::TestCase def test_saving_twice_should_not_duplicate_journal_details i = Issue.find(:first) i.init_journal(User.find(2), 'Some notes') - # 2 changes + # initial changes i.subject = 'New subject' i.done_ratio = i.done_ratio + 10 assert_difference 'Journal.count' do - assert_difference 'JournalDetail.count', 2 do - assert i.save - end + assert i.save end # 1 more change i.priority = IssuePriority.find(:first, :conditions => ["id <> ?", i.priority_id]) |