Permalink
Browse files

Instead of removing the instance variable just set it to nil, resolve…

…s the warnings because of a missing instance variable
  • Loading branch information...
bcardarella authored and fxn committed Jul 29, 2011
1 parent 9d5340e commit 55fb1780a0695bc60ba7ab91084026d45c36b43e
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/sprockets_helper_test.rb
@@ -97,7 +97,7 @@ def url_for(*args)
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 @@ def url_for(*args)
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

0 comments on commit 55fb178

Please sign in to comment.