This commit is contained in:
nilsding 2015-01-25 19:42:13 +01:00
parent ef4b0e78f8
commit 626cedca0e

View file

@ -3,7 +3,9 @@ SimpleCov.start
require 'capybara/poltergeist' require 'capybara/poltergeist'
Capybara.register_driver :poltergeist do |app| Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, js_errors: false) Capybara::Poltergeist::Driver.new app,
js_errors: false,
timeout: 180
end end
Capybara.javascript_driver = :poltergeist Capybara.javascript_driver = :poltergeist
@ -26,14 +28,6 @@ require 'factory_girl_rails'
# #
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config| RSpec.configure do |config|
# this should prevent timeouts for waiting on the assets to be compiled,
# makes testing a bit longer though
config.before(:all, type: :feature) do
visit "/assets/application.css"
visit "/assets/application.js"
end
# The settings below are suggested to provide a good initial experience # The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content. # with RSpec, but feel free to customize to your heart's content.
=begin =begin