Rename session_class method to adapter_class

This commit is contained in:
Bryan Helmkamp 2009-08-12 20:43:44 -04:00
parent b0b88a0d82
commit a8c5af2b7a
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ module Webrat
end end
def webrat_adapter def webrat_adapter
@_webrat_adapter ||= Webrat.session_class.new(self) @_webrat_adapter ||= Webrat.adapter_class.new(self)
end end
# all of these methods delegate to the @session, which should # all of these methods delegate to the @session, which should

View File

@ -12,7 +12,7 @@ module Webrat
class InfiniteRedirectError < WebratError class InfiniteRedirectError < WebratError
end end
def self.session_class def self.adapter_class
case Webrat.configuration.mode case Webrat.configuration.mode
when :rails when :rails
RailsSession RailsSession

View File

@ -1,5 +1,5 @@
module Webrat #:nodoc: module Webrat #:nodoc:
def self.session_class #:nodoc: def self.adapter_class #:nodoc:
TestSession TestSession
end end