Skip to content

Commit

Permalink
Rename session_class method to adapter_class
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Aug 13, 2009
1 parent b0b88a0 commit a8c5af2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/webrat/core/methods.rb
Expand Up @@ -20,7 +20,7 @@ def webrat_session
end

def webrat_adapter
@_webrat_adapter ||= Webrat.session_class.new(self)
@_webrat_adapter ||= Webrat.adapter_class.new(self)
end

# all of these methods delegate to the @session, which should
Expand Down
2 changes: 1 addition & 1 deletion lib/webrat/core/session.rb
Expand Up @@ -12,7 +12,7 @@ class PageLoadError < WebratError
class InfiniteRedirectError < WebratError
end

def self.session_class
def self.adapter_class
case Webrat.configuration.mode
when :rails
RailsSession
Expand Down
2 changes: 1 addition & 1 deletion spec/fakes/test_session.rb
@@ -1,5 +1,5 @@
module Webrat #:nodoc:
def self.session_class #:nodoc:
def self.adapter_class #:nodoc:
TestSession
end

Expand Down

0 comments on commit a8c5af2

Please sign in to comment.