Really adjusts error message in tests (#14086).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b0c7884976
commit
4c2776c634
|
@ -1525,7 +1525,7 @@ class IssueTest < ActiveSupport::TestCase
|
||||||
child = Issue.new(:parent_issue_id => issue2.id, :start_date => '2012-10-16',
|
child = Issue.new(:parent_issue_id => issue2.id, :start_date => '2012-10-16',
|
||||||
:project_id => 1, :tracker_id => 1, :status_id => 1, :subject => 'Child', :author_id => 1)
|
:project_id => 1, :tracker_id => 1, :status_id => 1, :subject => 'Child', :author_id => 1)
|
||||||
assert !child.valid?
|
assert !child.valid?
|
||||||
assert_include 'cannot be earlier than 10/18/2012 because of preceding issues', child.errors.full_messages
|
assert_include 'Start date cannot be earlier than 10/18/2012 because of preceding issues', child.errors.full_messages
|
||||||
assert_equal Date.parse('2012-10-18'), child.soonest_start
|
assert_equal Date.parse('2012-10-18'), child.soonest_start
|
||||||
child.start_date = '2012-10-18'
|
child.start_date = '2012-10-18'
|
||||||
assert child.save
|
assert child.save
|
||||||
|
|
Loading…
Reference in New Issue