Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Hack to unify Rails and Webrat session under Rails 3
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Jul 24, 2010
1 parent 9da815a commit fbc2c73
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/webrat/core/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit fbc2c73

Please sign in to comment.