aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-29 10:48:27 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-29 10:48:27 -0700
commit455e9e748d97dc3b4f379563ca72d0ea15e73fa8 (patch)
treedc56d5e82f24a6a4c06684a74ab886d09e78ae4b
parent3e8fe1d8984b78e47ec0702687b14eba13dc486e (diff)
parent1c94ba03328775a79541e3240ff2469d237b9f3b (diff)
downloadrails-455e9e748d97dc3b4f379563ca72d0ea15e73fa8.tar.gz
rails-455e9e748d97dc3b4f379563ca72d0ea15e73fa8.tar.bz2
rails-455e9e748d97dc3b4f379563ca72d0ea15e73fa8.zip
Merge pull request #2342 from bcardarella/remove_controller_instance_variable_warnings_from_sprocket_helper_test
Resolve "instance variable @controller not initialized" warnings for sprocket_helper_test
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb
index b9161b62c5..f4b5344d63 100644
--- a/actionpack/test/template/sprockets_helper_test.rb
+++ b/actionpack/test/template/sprockets_helper_test.rb
@@ -97,7 +97,7 @@ class SprocketsHelperTest < ActionView::TestCase
end
test "stylesheets served without a controller in scope cannot access the request" do
- remove_instance_variable("@controller")
+ @controller = nil
@config.action_controller.asset_host = Proc.new do |asset, request|
fail "This should not have been called."
end
@@ -107,7 +107,7 @@ class SprocketsHelperTest < ActionView::TestCase
end
test "stylesheets served without a controller in do not use asset hosts when the default protocol is :request" do
- remove_instance_variable("@controller")
+ @controller = nil
@config.action_controller.asset_host = "assets-%d.example.com"
@config.action_controller.default_asset_host_protocol = :request
@config.action_controller.perform_caching = true