X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/665abc501c6f46c989bc2055991e5c9a5b87eaf2..79bd1777ab0c165492122b10a22ecc2fb7cc4715:/config/initializers/konacha.rb?ds=sidebyside 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