Move selenium integration code to webrat/integrations/selenium so it's automatically required

This commit is contained in:
Bryan Helmkamp 2009-08-20 00:09:03 -04:00
parent 755abb7e07
commit e18ef197b5
2 changed files with 11 additions and 10 deletions

View File

@ -0,0 +1,11 @@
require "webrat/selenium"
if defined?(ActionController::IntegrationTest)
module ActionController #:nodoc:
IntegrationTest.class_eval do
include Webrat::Methods
include Webrat::Selenium::Methods
include Webrat::Selenium::Matchers
end
end
end

View File

@ -68,13 +68,3 @@ module Webrat
end end
end end
end end
if defined?(ActionController::IntegrationTest)
module ActionController #:nodoc:
IntegrationTest.class_eval do
include Webrat::Methods
include Webrat::Selenium::Methods
include Webrat::Selenium::Matchers
end
end
end