This file contains 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
# Adapted for Rspec2. This won't work in RSpec 1. | |
# Updated with new syntax to remove deprecation warnings | |
# Put this code in acceptance_helper.rb or better in a new file spec/acceptance/support/javascript.rb | |
RSpec.configure do |config| | |
config.before(:each) do | |
Capybara.current_driver = Capybara.javascript_driver if example.metadata[:js] | |
end |
NewerOlder