Commit 81717c3
Changed files (1)
spec
spec/rails_helper.rb
@@ -26,6 +26,10 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.maintain_test_schema!
+Capybara.register_driver :poltergeist do |app|
+ options = { debug: true }
+ Capybara::Poltergeist::Driver.new(app, options)
+end
Capybara.javascript_driver = :poltergeist
RSpec.configure do |config|