Commit 3a629dd1 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add capybara screenshot and store images in tmp/

parent b4946037
......@@ -3,3 +3,4 @@ source 'https://rubygems.org'
gem 'rspec', '~> 3.4'
gem 'capybara', '~> 2.7.1'
gem 'capybara-webkit', '~> 1.11.1'
gem 'capybara-screenshot', '~> 1.0.13'
......@@ -9,11 +9,16 @@ GEM
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
capybara-screenshot (1.0.13)
capybara (>= 1.0, < 3)
launchy
capybara-webkit (1.11.1)
capybara (>= 2.3.0, < 2.8.0)
json
diff-lcs (1.2.5)
json (2.0.1)
launchy (2.4.3)
addressable (~> 2.3)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
......@@ -46,6 +51,7 @@ PLATFORMS
DEPENDENCIES
capybara (~> 2.7.1)
capybara-screenshot (~> 1.0.13)
capybara-webkit (~> 1.11.1)
rspec (~> 3.4)
......
require 'capybara/rspec'
require 'capybara-webkit'
require 'capybara-screenshot/rspec'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
......@@ -21,6 +22,9 @@ end
Capybara.configure do |config|
config.app_host = ENV['GITLAB_URL']
config.default_driver = :webkit
# https://github.com/mattheworiordan/capybara-screenshot/issues/164
config.save_path = 'tmp'
end
Capybara::Webkit.configure do |config|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment