diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2011-07-23 17:31:48 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2011-07-23 17:31:48 -0700 |
commit | 1f898981751906e14a5dd3cd6dae68f97dd60a24 (patch) | |
tree | f8e98cec307341d0dc219374da8b1df13a661861 /actionpack/test/template | |
parent | 410e75419d2ffdee56a465eb551f868af7063176 (diff) | |
download | rails-1f898981751906e14a5dd3cd6dae68f97dd60a24.tar.gz rails-1f898981751906e14a5dd3cd6dae68f97dd60a24.tar.bz2 rails-1f898981751906e14a5dd3cd6dae68f97dd60a24.zip |
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.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |