]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/konacha.rb
use a controller method to handle cancan denials
[rails.git] / config / initializers / konacha.rb
index f97b19aaf73087f915f8d45fad2f86f031ecabd4..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