No need to use interpolation

This commit is contained in:
Rafael Mendonça França 2014-04-03 18:18:17 -03:00
parent 23294b5d67
commit 7141f1b0ba
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class ErrorTest < ActionView::TestCase
error_text = "Super User Name! can't be blank" error_text = "Super User Name! can't be blank"
with_form_for @user, :name, error: error_text with_form_for @user, :name, error: error_text
assert_select 'span.error', "#{error_text}" assert_select 'span.error', error_text
end end
test 'input with custom error does not generate the error if there is no error on the attribute' do test 'input with custom error does not generate the error if there is no error on the attribute' do
@ -168,7 +168,7 @@ class ErrorTest < ActionView::TestCase
error_text = "Super User Name! can't be blank" error_text = "Super User Name! can't be blank"
with_form_for @user, :name, error: error_text with_form_for @user, :name, error: error_text
assert_select 'span.error', "#{error_text}" assert_select 'span.error', error_text
end end
end end