Last active
December 19, 2015 05:59
-
-
Save zacksiri/5908153 to your computer and use it in GitHub Desktop.
for fixing capybara javascript test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add these to your test group | |
group :test do | |
gem 'capybara' | |
gem 'poltergeist' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capybara/poltergeist' | |
RSpec.configure do |config| | |
# ... | |
Capybara.javascript_driver = :poltergeist | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment