Simplify Methods#webrat_adapter

It is unecessary to have a special case for the :rack mode.
This commit is contained in:
Simon Rozet 2009-06-24 23:09:51 +02:00
parent f2b3b9891b
commit 042268c6a6
1 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,7 @@ module Webrat
end
def webrat_adapter
@_webrat_adapter ||=
if Webrat.configuration.mode == :rack
Webrat::RackSession.new(rack_test_session)
else
Webrat.session_class.new(self)
end
@_webrat_adapter ||= Webrat.session_class.new(self)
end
# all of these methods delegate to the @session, which should