Deprecate :rack_test

This commit is contained in:
Simon Rozet 2009-06-25 22:38:14 +02:00
parent a5a91b32e9
commit f2882ef8b2

View File

@ -20,6 +20,10 @@ module Webrat
MerbSession MerbSession
when :rack when :rack
RackSession RackSession
when :rack_test
warn("The :rack_test mode is deprecated. Please use :rack instead")
require "webrat/rack"
RackSession
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 SinatraSession