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