X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..48d5d0730bef794518fd0226c32f87fe90c57c9d:/config/initializers/konacha.rb?ds=sidebyside diff --git a/config/initializers/konacha.rb b/config/initializers/konacha.rb index f97b19aaf..f0145f5e0 100644 --- a/config/initializers/konacha.rb +++ b/config/initializers/konacha.rb @@ -1,5 +1,7 @@ -Konacha.configure do |config| - require "capybara/poltergeist" - config.spec_dir = "test/javascripts" - config.driver = :poltergeist -end if defined?(Konacha) +if defined?(Konacha) + Konacha.configure do |config| + require "capybara/poltergeist" + config.spec_dir = "test/javascripts" + config.driver = :poltergeist + end +end