Removing definition of webrat_session method out of the loop

This commit is contained in:
Bryan Helmkamp 2008-12-01 20:33:01 -05:00
parent c86931b401
commit 33cfb1cd6a
1 changed files with 4 additions and 4 deletions

View File

@ -7,13 +7,13 @@ module Webrat
def #{meth}(*args, &blk) def #{meth}(*args, &blk)
webrat_session.#{meth}(*args, &blk) webrat_session.#{meth}(*args, &blk)
end end
RUBY
end
end
def webrat_session def webrat_session
@_webrat_session ||= ::Webrat.session_class.new(self) @_webrat_session ||= ::Webrat.session_class.new(self)
end end
RUBY
end
end
# all of these methods delegate to the @session, which should # all of these methods delegate to the @session, which should
# be created transparently. # be created transparently.