From f2882ef8b2857c5d9f166184cb788be3c90186cc Mon Sep 17 00:00:00 2001 From: Simon Rozet Date: Thu, 25 Jun 2009 22:38:14 +0200 Subject: [PATCH] Deprecate :rack_test --- lib/webrat/core/session.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index 2a5ff54..074ded6 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -20,6 +20,10 @@ module Webrat MerbSession when :rack RackSession + when :rack_test + warn("The :rack_test mode is deprecated. Please use :rack instead") + require "webrat/rack" + RackSession when :sinatra warn("The :sinatra mode is deprecated. Please use :rack instead") SinatraSession