##// END OF EJS Templates
Fixes a test failure due to a default custom field value....
Jean-Philippe Lang -
r3395:1ab77ee01548
parent child
Show More
@@ -534,13 +534,11 class IssueTest < ActiveSupport::TestCase
534 def test_saving_twice_should_not_duplicate_journal_details
534 def test_saving_twice_should_not_duplicate_journal_details
535 i = Issue.find(:first)
535 i = Issue.find(:first)
536 i.init_journal(User.find(2), 'Some notes')
536 i.init_journal(User.find(2), 'Some notes')
537 # 2 changes
537 # initial changes
538 i.subject = 'New subject'
538 i.subject = 'New subject'
539 i.done_ratio = i.done_ratio + 10
539 i.done_ratio = i.done_ratio + 10
540 assert_difference 'Journal.count' do
540 assert_difference 'Journal.count' do
541 assert_difference 'JournalDetail.count', 2 do
541 assert i.save
542 assert i.save
543 end
544 end
542 end
545 # 1 more change
543 # 1 more change
546 i.priority = IssuePriority.find(:first, :conditions => ["id <> ?", i.priority_id])
544 i.priority = IssuePriority.find(:first, :conditions => ["id <> ?", i.priority_id])
General Comments 0
You need to be logged in to leave comments. Login now