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 --- spec/support/capybara.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index ead99abddc8..fed1ab6ee33 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -13,7 +13,9 @@ end Capybara.default_wait_time = timeout Capybara.ignore_hidden_elements = true -require 'capybara-screenshot/rspec' +unless ENV['CI'] || ENV['CI_SERVER'] + require 'capybara-screenshot/rspec' -# 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.1