summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 13:07:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 13:07:21 +0000
commit0f189ec0109a296115d5fe5bae9af6dee63d30c8 (patch)
treed0cbbdf2b5b500b4b152bcb93009bdda9d0970ec /test
parentfaff6c9898975917cc35d861fab2eb495c3675bb (diff)
downloadredmine-0f189ec0109a296115d5fe5bae9af6dee63d30c8.tar.gz
redmine-0f189ec0109a296115d5fe5bae9af6dee63d30c8.zip
Rails3: test: replace deprecated errors.on at test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version of unit/issue_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7610 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 5fe7985fa..74fbb6b26 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -413,7 +413,7 @@ class IssueTest < ActiveSupport::TestCase
def test_should_not_be_able_to_assign_a_new_issue_to_a_locked_version
issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :fixed_version_id => 2, :subject => 'New issue')
assert !issue.save
- assert_not_nil issue.errors.on(:fixed_version_id)
+ assert_not_nil issue.errors[:fixed_version_id]
end
def test_should_be_able_to_assign_a_new_issue_to_an_open_version