@@ -883,7 +883,9 class IssueTest < ActiveSupport::TestCase | |||||
883 | end |
|
883 | end | |
884 |
|
884 | |||
885 | def test_should_not_be_able_to_assign_a_new_issue_to_a_closed_version |
|
885 | def test_should_not_be_able_to_assign_a_new_issue_to_a_closed_version | |
886 |
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, |
|
886 | issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, | |
|
887 | :status_id => 1, :fixed_version_id => 1, | |||
|
888 | :subject => 'New issue') | |||
887 | assert !issue.save |
|
889 | assert !issue.save | |
888 | assert_not_nil issue.errors[:fixed_version_id] |
|
890 | assert_not_nil issue.errors[:fixed_version_id] | |
889 | end |
|
891 | end |
General Comments 0
You need to be logged in to leave comments.
Login now