Skip to content

Commit

Permalink
Prepare the context in URLHelperTest so that there are no required un…
Browse files Browse the repository at this point in the history
…initialized instance variables
  • Loading branch information
wycats committed May 23, 2011
1 parent 7501943 commit 0a587ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actionpack/test/template/url_helper_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0a587ee

Please sign in to comment.