Skip to content

Commit

Permalink
Use Chrome for Feature Specs (Except on Travis)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevallano committed Mar 5, 2017
1 parent 71e9540 commit 373aa63
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions spec/rails_helper.rb
Expand Up @@ -22,11 +22,21 @@

Capybara.default_max_wait_time = 4

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end

unless ENV['TRAVIS']

Capybara.javascript_driver = :chrome

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end

end

RSpec.configure do |config|
Expand Down

0 comments on commit 373aa63

Please sign in to comment.