X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/665abc501c6f46c989bc2055991e5c9a5b87eaf2..dddef7672e37e85e14af7aa2ffbd95214bd2689f:/config/initializers/konacha.rb 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