From 1f898981751906e14a5dd3cd6dae68f97dd60a24 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Sat, 23 Jul 2011 17:31:48 -0700 Subject: Simple fix to the NoMethodError noted in #2177. Unfortunately #respond_to?(:controller) won't work as suggested, nor will respond_to?(:params), as #controller is present and #params is delegated to #controller. #delegate makes respond_to? return true regardless whether the target responds to it. --- actionpack/test/template/sprockets_helper_test.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index f11d1bba15..6ee110f549 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -12,7 +12,6 @@ class SprocketsHelperTest < ActionView::TestCase super @controller = BasicController.new - @controller.stubs(:params).returns({}) @request = Class.new do def protocol() 'http://' end -- cgit v1.2.3