Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Rename SinatraSession to SinatraAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Aug 13, 2009
1 parent 561525d commit b0b88a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/webrat/core/session.rb
Expand Up @@ -26,7 +26,7 @@ def self.session_class
RackAdapter
when :sinatra
warn("The :sinatra mode is deprecated. Please use :rack instead")
SinatraSession
SinatraAdapter
when :selenium
SeleniumSession
when :mechanize
Expand Down
2 changes: 1 addition & 1 deletion lib/webrat/sinatra.rb
@@ -1,7 +1,7 @@
require "webrat/rack"

module Webrat
class SinatraSession < RackAdapter
class SinatraAdapter < RackAdapter
def initialize(context)
app = context.respond_to?(:app) ? context.app : Sinatra::Application

Expand Down

0 comments on commit b0b88a0

Please sign in to comment.