Permalink
Browse files

Workaround lack of Mocha on 1.9 (hasn't been updated for minitest yet)

  • Loading branch information...
jeremy committed Nov 9, 2008
1 parent ace9e53 commit 8a1f91338131c69b88fb32e7f0078cef28421437
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/controller/cgi_test.rb
@@ -48,7 +48,8 @@ def setup
# some developers have grown accustomed to using comma in cookie values.
@alt_cookie_fmt_request_hash = {"HTTP_COOKIE"=>"_session_id=c84ace847,96670c052c6ceb2451fb0f2;is_admin=yes"}
@cgi = CGI.new
- @cgi.stubs(:env_table).returns(@request_hash)
+ class << @cgi; attr_accessor :env_table end
+ @cgi.env_table = @request_hash
@request = ActionController::CgiRequest.new(@cgi)
end

0 comments on commit 8a1f913

Please sign in to comment.