Skip to content

Commit fa0c7bd

Browse files
authored
Merge pull request #1501 from fatfreecrm/feature/capybara-screenshot
Add capybara-screenshot
1 parent 11cc55a commit fa0c7bd

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ group :development, :test do
7474
gem 'rubocop-rspec_rails'
7575
gem 'rainbow'
7676
gem 'puma' # used by capybara 3
77+
gem 'capybara-screenshot'
7778
end
7879

7980
group :test do

Gemfile.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ GEM
156156
rack-test (>= 0.6.3)
157157
regexp_parser (>= 1.5, < 3.0)
158158
xpath (~> 3.2)
159+
capybara-screenshot (1.0.26)
160+
capybara (>= 1.0, < 4)
161+
launchy
162+
childprocess (5.1.0)
163+
logger (~> 1.5)
159164
chronic (0.10.2)
160165
coderay (1.1.3)
161166
coffee-rails (5.0.0)
@@ -255,6 +260,10 @@ GEM
255260
thor (>= 0.14, < 2.0)
256261
json (2.13.1)
257262
language_server-protocol (3.17.0.5)
263+
launchy (3.1.1)
264+
addressable (~> 2.8)
265+
childprocess (~> 5.0)
266+
logger (~> 1.6)
258267
libv8-node (24.1.0.0-arm64-darwin)
259268
libv8-node (24.1.0.0-x86_64-linux)
260269
lint_roller (1.1.0)
@@ -580,6 +589,7 @@ DEPENDENCIES
580589
capistrano-rails
581590
capistrano-rvm
582591
capybara
592+
capybara-screenshot
583593
coffee-rails
584594
coffee-script-source (~> 1.8, >= 1.8.0)
585595
country_select

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
require 'ffaker'
1818
require 'timecop'
1919
require 'webdrivers'
20+
require 'capybara-screenshot/rspec'
2021

2122
# Requires supporting ruby files with custom matchers and macros, etc,
2223
# in spec/support/ and its subdirectories.

0 commit comments

Comments
 (0)