##// END OF EJS Templates
Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/functional/issues_controller_test.rb...
Toshi MARUYAMA -
r8013:63d27a5389a4
parent child
Show More
@@ -1077,7 +1077,8 class IssuesControllerTest < ActionController::TestCase
1077 assert_template 'new'
1077 assert_template 'new'
1078 issue = assigns(:issue)
1078 issue = assigns(:issue)
1079 assert_not_nil issue
1079 assert_not_nil issue
1080 assert_equal I18n.translate('activerecord.errors.messages.invalid'), issue.errors.on(:custom_values)
1080 assert_equal I18n.translate('activerecord.errors.messages.invalid'),
1081 issue.errors[:custom_values].to_s
1081 end
1082 end
1082
1083
1083 def test_post_create_with_watchers
1084 def test_post_create_with_watchers
General Comments 0
You need to be logged in to leave comments. Login now