From 4bc71bf55ae5ed7e86df0e1aa7f34d1b3b9d74e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 3 Apr 2014 18:24:30 -0300 Subject: [PATCH] Remove unneeded variable --- test/form_builder/error_test.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/form_builder/error_test.rb b/test/form_builder/error_test.rb index d69303e6..2754c29f 100644 --- a/test/form_builder/error_test.rb +++ b/test/form_builder/error_test.rb @@ -163,8 +163,7 @@ class ErrorTest < ActionView::TestCase end test 'input with custom error does not generate the error if there is no error on the attribute' do - error_text = "Super User Active! can't be blank" - with_form_for @user, :active, error: error_text + with_form_for @user, :active, error: "Super User Active! can't be blank" assert_no_select 'span.error' end @@ -180,8 +179,7 @@ class ErrorTest < ActionView::TestCase test 'input with custom error when using full_error component does not generate the error if there is no error on the attribute' do swap_wrapper :default, self.custom_wrapper_with_full_error do - error_text = "Super User Active! can't be blank" - with_form_for @user, :active, error: error_text + with_form_for @user, :active, error: "Super User Active! can't be blank" assert_no_select 'span.error' end