##// END OF EJS Templates
Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/repository_test.rb...
Toshi MARUYAMA -
r8015:66b49c634d2b
parent child
Show More
@@ -68,7 +68,7 class RepositoryTest < ActiveSupport::TestCase
68 :project => Project.find(3), :url => "svn://localhost")
68 :project => Project.find(3), :url => "svn://localhost")
69 assert !repository.save
69 assert !repository.save
70 assert_equal I18n.translate('activerecord.errors.messages.invalid'),
70 assert_equal I18n.translate('activerecord.errors.messages.invalid'),
71 repository.errors.on(:type)
71 repository.errors[:type].to_s
72 end
72 end
73 end
73 end
74
74
General Comments 0
You need to be logged in to leave comments. Login now