diff --git a/lib/webrat/integrations/selenium.rb b/lib/webrat/integrations/selenium.rb new file mode 100644 index 0000000..8f991be --- /dev/null +++ b/lib/webrat/integrations/selenium.rb @@ -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 \ No newline at end of file diff --git a/lib/webrat/selenium.rb b/lib/webrat/selenium.rb index 2f823ab..8968b7b 100644 --- a/lib/webrat/selenium.rb +++ b/lib/webrat/selenium.rb @@ -68,13 +68,3 @@ module Webrat 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