##// END OF EJS Templates
Rails3: test: replace deprecated errors.on at test_should_not_be_able_to_assign_a_new_issue_to_a_closed_version of unit/issue_test.rb...
Toshi MARUYAMA -
r7489:faff6c989897
parent child
Show More
@@ -407,7 +407,7 class IssueTest < ActiveSupport::TestCase
407 def test_should_not_be_able_to_assign_a_new_issue_to_a_closed_version
407 def test_should_not_be_able_to_assign_a_new_issue_to_a_closed_version
408 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :fixed_version_id => 1, :subject => 'New issue')
408 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :fixed_version_id => 1, :subject => 'New issue')
409 assert !issue.save
409 assert !issue.save
410 assert_not_nil issue.errors.on(:fixed_version_id)
410 assert_not_nil issue.errors[:fixed_version_id]
411 end
411 end
412
412
413 def test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version
413 def test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version
General Comments 0
You need to be logged in to leave comments. Login now