Skip to content

Commit b30f30d

Browse files
committed
Added Capybara Screenshot as Gem
1 parent aa10cbd commit b30f30d

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

evaluationserver/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ group :development, :test do
6767
gem 'capybara'
6868
gem 'simplecov', require: false
6969
gem 'brakeman', require: false
70+
gem 'capybara-screenshot', :group => :test
7071
end
7172

7273
gem "font-awesome-rails"

evaluationserver/Gemfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ GEM
5757
rack (>= 1.0.0)
5858
rack-test (>= 0.5.4)
5959
xpath (>= 2.0, < 4.0)
60+
capybara-screenshot (1.0.19)
61+
capybara (>= 1.0, < 4)
62+
launchy
6063
climate_control (0.2.0)
6164
cocaine (0.5.8)
6265
climate_control (>= 0.0.3, < 1.0)
@@ -106,6 +109,8 @@ GEM
106109
railties (>= 4.2.0)
107110
thor (>= 0.14, < 2.0)
108111
json (1.8.6)
112+
launchy (2.4.3)
113+
addressable (~> 2.3)
109114
less (2.6.0)
110115
commonjs (~> 0.2.7)
111116
less-rails (3.0.0)
@@ -265,6 +270,7 @@ DEPENDENCIES
265270
bootstrap-sass (~> 3.2.0)
266271
brakeman
267272
capybara
273+
capybara-screenshot
268274
cocoon
269275
database_cleaner
270276
factory_bot

evaluationserver/spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
2424
require 'capybara/rails'
2525
require 'capybara/rspec'
26+
require 'capybara-screenshot/rspec'
2627
# Checks for pending migrations and applies them before tests are run.
2728
# If you are not using ActiveRecord, you can remove this line.
2829
ActiveRecord::Migration.maintain_test_schema!

0 commit comments

Comments
 (0)