@@ -534,13 +534,11 class IssueTest < ActiveSupport::TestCase | |||
|
534 | 534 | def test_saving_twice_should_not_duplicate_journal_details |
|
535 | 535 | i = Issue.find(:first) |
|
536 | 536 | i.init_journal(User.find(2), 'Some notes') |
|
537 |
# |
|
|
537 | # initial changes | |
|
538 | 538 | i.subject = 'New subject' |
|
539 | 539 | i.done_ratio = i.done_ratio + 10 |
|
540 | 540 | assert_difference 'Journal.count' do |
|
541 | assert_difference 'JournalDetail.count', 2 do | |
|
542 | assert i.save | |
|
543 | end | |
|
541 | assert i.save | |
|
544 | 542 | end |
|
545 | 543 | # 1 more change |
|
546 | 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