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
when :sinatra
warn("The :sinatra mode is deprecated. Please use :rack instead")
SinatraSession
SinatraAdapter
when :selenium
SeleniumSession
when :mechanize

View File

@ -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