Move selenium integration code to webrat/integrations/selenium so it's automatically required
This commit is contained in:
parent
755abb7e07
commit
e18ef197b5
11
lib/webrat/integrations/selenium.rb
Normal file
11
lib/webrat/integrations/selenium.rb
Normal 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
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user