Rename session_class method to adapter_class
This commit is contained in:
parent
b0b88a0d82
commit
a8c5af2b7a
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module Webrat #:nodoc:
|
module Webrat #:nodoc:
|
||||||
def self.session_class #:nodoc:
|
def self.adapter_class #:nodoc:
|
||||||
TestSession
|
TestSession
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user