X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/eab2eeaa47b2aa8c7f52371f9bfdd60711a41fb6..70cca71f3802519eac1fabaeb3ee1cc9f35f5cb7:/config/initializers/konacha.rb?ds=inline diff --git a/config/initializers/konacha.rb b/config/initializers/konacha.rb index 2924efab6..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