diff options
author | Dan Pickett <dpickett@enlightsolutions.com> | 2008-12-15 11:47:39 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-15 11:47:39 -0600 |
commit | 38412ecb5daa1826574ad0f132d23dc2ef4288bf (patch) | |
tree | 98769628e0f83962711f845c4e9e3c005024204a /actionpack/lib/action_view/test_case.rb | |
parent | 07326b38ec1cfba9b8d55015c40121258cf79297 (diff) | |
download | rails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.tar.gz rails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.tar.bz2 rails-38412ecb5daa1826574ad0f132d23dc2ef4288bf.zip |
Fixed ActionView::TestCase current url context [#1561 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_view/test_case.rb')
-rw-r--r-- | actionpack/lib/action_view/test_case.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb index a5655843d2..1a9ef983a5 100644 --- a/actionpack/lib/action_view/test_case.rb +++ b/actionpack/lib/action_view/test_case.rb @@ -60,11 +60,14 @@ module ActionView end class TestController < ActionController::Base - attr_accessor :request, :response + attr_accessor :request, :response, :params def initialize @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new + + @params = {} + send(:initialize_current_url) end end |