Merge pull request #357 from gopesht/fix_flickering_test

Set js_errors to false in poltergeist driver
This commit is contained in:
Artem Chernikov 2014-07-23 09:42:00 +02:00
commit ade64f339f

View file

@ -63,6 +63,12 @@ RSpec.configure do |config|
# poltergeist as a underlying mech for Capybara
Capybara.javascript_driver = :poltergeist
Capybara.register_driver :poltergeist do |app|
options = {
:js_errors => true
}
Capybara::Poltergeist::Driver.new(app, options)
end
# Includes helpers and connect them to specific types of tests
config.include FactoryGirl::Syntax::Methods