summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_relation_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-07-30 08:23:54 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-07-30 08:23:54 +0000
commitc49451eb102d62fcc0982721ccad14087883f9ce (patch)
tree0d6aa6c7a78b6236b7f84c28fd3bd84d5a9f2fbe /test/unit/issue_relation_test.rb
parentc20b1d64a72fd50c8d8de9d32d811b803ca1e6bb (diff)
downloadredmine-c49451eb102d62fcc0982721ccad14087883f9ce.tar.gz
redmine-c49451eb102d62fcc0982721ccad14087883f9ce.zip
not use assert_not_nil in Errors#[]
r7593 etc. replaced Rails2 Errors#on. Rails3 Errors#[] always return array. So, Rails3 Errors#[] is always not nil. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_relation_test.rb')
-rw-r--r--test/unit/issue_relation_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 3bcf06bd5..6fc408353 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -115,7 +115,7 @@ class IssueRelationTest < ActiveSupport::TestCase
:relation_type => IssueRelation::TYPE_PRECEDES
)
assert !r.save
- assert_not_nil r.errors[:base]
+ assert_not_equal [], r.errors[:base]
end
def test_validates_circular_dependency_of_subtask
@@ -166,7 +166,7 @@ class IssueRelationTest < ActiveSupport::TestCase
:relation_type => IssueRelation::TYPE_BLOCKED
)
assert !r.save
- assert_not_nil r.errors[:base]
+ assert_not_equal [], r.errors[:base]
end
def test_create_should_make_journal_entry