##// END OF EJS Templates
Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/version_test.rb...
Toshi MARUYAMA -
r8012:c8556330c15b
parent child
Show More
@@ -33,7 +33,8 class VersionTest < ActiveSupport::TestCase
33 33 def test_invalid_effective_date_validation
34 34 v = Version.new(:project => Project.find(1), :name => '1.1', :effective_date => '99999-01-01')
35 35 assert !v.save
36 assert_equal I18n.translate('activerecord.errors.messages.not_a_date'), v.errors.on(:effective_date)
36 assert_equal I18n.translate('activerecord.errors.messages.not_a_date'),
37 v.errors[:effective_date].to_s
37 38 end
38 39
39 40 def test_progress_should_be_0_with_no_assigned_issues
General Comments 0
You need to be logged in to leave comments. Login now