]> source.dussan.org Git - redmine.git/commitdiff
Rails3: test: replace deprecated errors.on at test_validate_identifier of unit/projec...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 04:18:18 +0000 (04:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 04:18:18 +0000 (04:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7596 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index dcc4da3569cdbb990211910df6bb4cf086243473..20f34e266ab7772a79bb857280b5ceddeec0f4e4 100644 (file)
@@ -119,7 +119,7 @@ class ProjectTest < ActiveSupport::TestCase
       p = Project.new
       p.identifier = identifier
       p.valid?
-      assert_equal valid, p.errors.on('identifier').nil?
+      assert_equal valid, p.errors['identifier'].nil?
     end
   end