aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/active_model_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/active_model_helper_test.rb')
-rw-r--r--actionpack/test/template/active_model_helper_test.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/test/template/active_model_helper_test.rb b/actionpack/test/template/active_model_helper_test.rb
index 1a5316a689..47eb620f7a 100644
--- a/actionpack/test/template/active_model_helper_test.rb
+++ b/actionpack/test/template/active_model_helper_test.rb
@@ -118,13 +118,12 @@ class ActiveModelHelperTest < ActionView::TestCase
setup_user
@response = ActionController::TestResponse.new
+ end
- @controller = Object.new
- def @controller.url_for(options)
- options = options.symbolize_keys
+ def url_for(options)
+ options = options.symbolize_keys
- [options[:action], options[:id].to_param].compact.join('/')
- end
+ [options[:action], options[:id].to_param].compact.join('/')
end
def test_generic_input_tag