]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/konacha.rb
Monkey patch OAuth to allow http signatures on https requests
[rails.git] / config / initializers / konacha.rb
index 2924efab6fe58f89e29c814c6398222961e8c8be..f0145f5e0a29b421b23874bec7c10102ab5c1775 100644 (file)
@@ -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