diff --git a/lib/webrat/core/methods.rb b/lib/webrat/core/methods.rb index 8e00e55..0c4e8fe 100644 --- a/lib/webrat/core/methods.rb +++ b/lib/webrat/core/methods.rb @@ -7,14 +7,14 @@ module Webrat def #{meth}(*args, &blk) webrat_session.#{meth}(*args, &blk) end - - def webrat_session - @_webrat_session ||= ::Webrat.session_class.new(self) - end RUBY end end + def webrat_session + @_webrat_session ||= ::Webrat.session_class.new(self) + end + # all of these methods delegate to the @session, which should # be created transparently. #