@@ -893,7 +893,9 class IssueTest < ActiveSupport::TestCase | |||||
893 | end |
|
893 | end | |
894 |
|
894 | |||
895 | def test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version |
|
895 | def test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version | |
896 |
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, |
|
896 | issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, | |
|
897 | :status_id => 1, :fixed_version_id => 2, | |||
|
898 | :subject => 'New issue') | |||
897 | assert !issue.save |
|
899 | assert !issue.save | |
898 | assert_not_nil issue.errors[:fixed_version_id] |
|
900 | assert_not_nil issue.errors[:fixed_version_id] | |
899 | end |
|
901 | end |
General Comments 0
You need to be logged in to leave comments.
Login now