No need to use interpolation
This commit is contained in:
parent
23294b5d67
commit
7141f1b0ba
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue