From 0a587eecc9a1c6f711c727694af3467fd33b4914 Mon Sep 17 00:00:00 2001 From: wycats Date: Sun, 22 May 2011 23:38:10 -0700 Subject: Prepare the context in URLHelperTest so that there are no required uninitialized instance variables --- actionpack/test/template/url_helper_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 8d0f0124c2..4aa45c8bf0 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/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 -- cgit v1.2.3