start driver support
This commit is contained in:
parent
2afcc53b75
commit
d91e965442
6
lib/cuke-pack/drivers.rb
Normal file
6
lib/cuke-pack/drivers.rb
Normal file
@ -0,0 +1,6 @@
|
||||
Before do
|
||||
if ENV['DRIVER']
|
||||
Capybara.current_driver = ENV['DRIVER'].to_sym
|
||||
end
|
||||
end
|
||||
|
6
lib/cuke-pack/drivers/firefox.rb
Normal file
6
lib/cuke-pack/drivers/firefox.rb
Normal file
@ -0,0 +1,6 @@
|
||||
require 'cuke-pack/drivers'
|
||||
|
||||
Capybara.register_driver :firefox do |app|
|
||||
Capybara::Selenium::Driver.new(app, :browser => :firefox)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user