Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hack to unify Rails and Webrat session under Rails 3

  • Loading branch information...
commit fbc2c736c9e4a2cfabf8a6c385980490206fdfc8 1 parent 9da815a
@brynary brynary authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/webrat/core/methods.rb
View
9 lib/webrat/core/methods.rb
@@ -23,6 +23,15 @@ def webrat_session
end
end
+ # Temporary hack to work with Rails 3
+ def response
+ if Webrat.configuration.mode == :rack
+ webrat_session.response
+ else
+ super
+ end
+ end
+
# all of these methods delegate to the @session, which should
# be created transparently.
#
Please sign in to comment.
Something went wrong with that request. Please try again.