Set js_errors to false in poltergeist driver

This commit is contained in:
Gopesh Tulsyan 2014-07-23 12:28:49 +05:30
parent 9a3451af4f
commit b4a838bfb2

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