From 38a1e54cca4f547e6ae93d9cbe9da3dbed3886a2 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Fri, 5 Nov 2021 21:02:11 -0700 Subject: [PATCH] Install capybara-screenshot gem --- Gemfile | 1 + Gemfile.lock | 4 ++++ spec/rails_helper.rb | 1 + 3 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index b442ed8d..6cd2e5bd 100644 --- a/Gemfile +++ b/Gemfile @@ -67,3 +67,4 @@ group :test, :staging do gem 'webdrivers' gem 'simplecov', :require => false end +gem 'capybara-screenshot', :group => :test diff --git a/Gemfile.lock b/Gemfile.lock index 0be327a8..3ce7800b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -100,6 +100,9 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) + capybara-screenshot (1.0.25) + capybara (>= 1.0, < 4) + launchy childprocess (3.0.0) ci_reporter (2.0.0) builder (>= 2.1.2) @@ -428,6 +431,7 @@ DEPENDENCIES capistrano-rbenv capistrano3-puma capybara + capybara-screenshot ci_reporter_rspec coffee-rails database_cleaner diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index fb08aef0..3d61e4d1 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -4,6 +4,7 @@ require 'spec_helper' require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! +require 'capybara-screenshot/rspec' # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are