From ad8956070788cf3fa0f2ea5cbcb33867028c8605 Mon Sep 17 00:00:00 2001 From: Nando Date: Tue, 11 Nov 2008 23:38:17 +0100 Subject: [PATCH] Multiple test environments support --- init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.rb b/init.rb index e19fb6a..d4f35a9 100644 --- a/init.rb +++ b/init.rb @@ -1,3 +1,3 @@ -if RAILS_ENV == "test" || RAILS_ENV == "selenium" +unless (RAILS_ENV =~ /^test/).nil? and RAILS_ENV != "selenium" require File.join(File.dirname(__FILE__), "lib", "webrat") end