start driver support

This commit is contained in:
John Bintz 2012-08-22 11:47:33 -04:00
parent 2afcc53b75
commit d91e965442
2 changed files with 12 additions and 0 deletions

6
lib/cuke-pack/drivers.rb Normal file
View File

@ -0,0 +1,6 @@
Before do
if ENV['DRIVER']
Capybara.current_driver = ENV['DRIVER'].to_sym
end
end

View File

@ -0,0 +1,6 @@
require 'cuke-pack/drivers'
Capybara.register_driver :firefox do |app|
Capybara::Selenium::Driver.new(app, :browser => :firefox)
end