Fix polthergeist issues
This commit is contained in:
parent
ade64f339f
commit
79937d5338
1 changed files with 4 additions and 6 deletions
|
|
@ -62,13 +62,11 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
# poltergeist as a underlying mech for Capybara
|
# poltergeist as a underlying mech for Capybara
|
||||||
Capybara.javascript_driver = :poltergeist
|
|
||||||
Capybara.register_driver :poltergeist do |app|
|
Capybara.register_driver :poltergeist do |app|
|
||||||
options = {
|
Capybara::Poltergeist::Driver.new(app, js_errors: false)
|
||||||
:js_errors => true
|
end
|
||||||
}
|
|
||||||
Capybara::Poltergeist::Driver.new(app, options)
|
Capybara.javascript_driver = :poltergeist
|
||||||
end
|
|
||||||
|
|
||||||
# Includes helpers and connect them to specific types of tests
|
# Includes helpers and connect them to specific types of tests
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryGirl::Syntax::Methods
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue