Rename SinatraSession to SinatraAdapter

This commit is contained in:
Bryan Helmkamp 2009-08-12 20:40:44 -04:00
parent 561525dd81
commit b0b88a0d82
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ module Webrat
RackAdapter RackAdapter
when :sinatra when :sinatra
warn("The :sinatra mode is deprecated. Please use :rack instead") warn("The :sinatra mode is deprecated. Please use :rack instead")
SinatraSession SinatraAdapter
when :selenium when :selenium
SeleniumSession SeleniumSession
when :mechanize when :mechanize

View File

@ -1,7 +1,7 @@
require "webrat/rack" require "webrat/rack"
module Webrat module Webrat
class SinatraSession < RackAdapter class SinatraAdapter < RackAdapter
def initialize(context) def initialize(context)
app = context.respond_to?(:app) ? context.app : Sinatra::Application app = context.respond_to?(:app) ? context.app : Sinatra::Application