From 652c15b585bac393b5c403a03355040eef51789c Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Sat, 25 Apr 2015 17:22:44 -0400 Subject: Don't use capybara-screenshot in CI environments --- features/support/capybara.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'features/support') diff --git a/features/support/capybara.rb b/features/support/capybara.rb index aaec9a6ece7..31dbf0feb2f 100644 --- a/features/support/capybara.rb +++ b/features/support/capybara.rb @@ -16,7 +16,9 @@ end Capybara.default_wait_time = timeout Capybara.ignore_hidden_elements = false -require 'capybara-screenshot/spinach' +unless ENV['CI'] || ENV['CI_SERVER'] + require 'capybara-screenshot/spinach' -# Keep only the screenshots generated from the last failing test suite -Capybara::Screenshot.prune_strategy = :keep_last_run + # Keep only the screenshots generated from the last failing test suite + Capybara::Screenshot.prune_strategy = :keep_last_run +end -- cgit v1.2.3