Rename SinatraSession to SinatraAdapter
This commit is contained in:
parent
561525dd81
commit
b0b88a0d82
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue