Skip to content
Browse files

Prepare the context in URLHelperTest so that there are no required un…

…initialized instance variables
  • Loading branch information...
1 parent 7501943 commit 0a587eecc9a1c6f711c727694af3467fd33b4914 @wycats wycats committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/test/template/url_helper_test.rb
View
2 actionpack/test/template/url_helper_test.rb
@@ -25,6 +25,8 @@ class UrlHelperTest < ActiveSupport::TestCase
include ActionView::Context
include RenderERBUtils
+ setup :_prepare_context
+
def hash_for(opts = [])
ActiveSupport::OrderedHash[*([:controller, "foo", :action, "bar"].concat(opts))]
end

0 comments on commit 0a587ee

Please sign in to comment.
Something went wrong with that request. Please try again.