update capybara and cucumber-rails
This commit is contained in:
parent
f949ae2aab
commit
2412ee390d
4 changed files with 63 additions and 37 deletions
6
Gemfile
6
Gemfile
|
|
@ -274,8 +274,8 @@ group :test do
|
||||||
# Cucumber (integration tests)
|
# Cucumber (integration tests)
|
||||||
|
|
||||||
gem "apparition", "0.6.0"
|
gem "apparition", "0.6.0"
|
||||||
gem "capybara", "3.15.0"
|
gem "capybara", "3.35.3"
|
||||||
gem "database_cleaner", "1.8.3"
|
gem "database_cleaner-active_record", "1.8.0"
|
||||||
|
|
||||||
gem "cucumber-api-steps", "0.14", require: false
|
gem "cucumber-api-steps", "0.14", require: false
|
||||||
|
|
||||||
|
|
@ -294,7 +294,7 @@ group :development, :test do
|
||||||
gem "rspec-rails", "3.9.1"
|
gem "rspec-rails", "3.9.1"
|
||||||
|
|
||||||
# Cucumber (integration tests)
|
# Cucumber (integration tests)
|
||||||
gem "cucumber-rails", "2.0.0", require: false
|
gem "cucumber-rails", "2.3.0", require: false
|
||||||
|
|
||||||
# Jasmine (client side application tests (JS))
|
# Jasmine (client side application tests (JS))
|
||||||
gem "chrome_remote", "0.3.0"
|
gem "chrome_remote", "0.3.0"
|
||||||
|
|
|
||||||
90
Gemfile.lock
90
Gemfile.lock
|
|
@ -72,7 +72,6 @@ GEM
|
||||||
attr_required (1.0.1)
|
attr_required (1.0.1)
|
||||||
autoprefixer-rails (10.2.4.0)
|
autoprefixer-rails (10.2.4.0)
|
||||||
execjs
|
execjs
|
||||||
backports (3.17.0)
|
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
bindata (2.4.6)
|
bindata (2.4.6)
|
||||||
bootstrap-sass (3.4.1)
|
bootstrap-sass (3.4.1)
|
||||||
|
|
@ -82,13 +81,13 @@ GEM
|
||||||
buftok (0.2.0)
|
buftok (0.2.0)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
byebug (11.1.3)
|
byebug (11.1.3)
|
||||||
capybara (3.15.0)
|
capybara (3.35.3)
|
||||||
addressable
|
addressable
|
||||||
mini_mime (>= 0.1.3)
|
mini_mime (>= 0.1.3)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
rack (>= 1.6.0)
|
rack (>= 1.6.0)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
regexp_parser (~> 1.2)
|
regexp_parser (>= 1.5, < 3.0)
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
carrierwave (1.3.1)
|
carrierwave (1.3.1)
|
||||||
activemodel (>= 4.0.0)
|
activemodel (>= 4.0.0)
|
||||||
|
|
@ -142,32 +141,50 @@ GEM
|
||||||
crack (0.4.3)
|
crack (0.4.3)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
cucumber (3.1.2)
|
cucumber (5.3.0)
|
||||||
builder (>= 2.1.2)
|
builder (~> 3.2, >= 3.2.4)
|
||||||
cucumber-core (~> 3.2.0)
|
cucumber-core (~> 8.0, >= 8.0.1)
|
||||||
cucumber-expressions (~> 6.0.1)
|
cucumber-create-meta (~> 2.0, >= 2.0.2)
|
||||||
cucumber-wire (~> 0.0.1)
|
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
|
||||||
diff-lcs (~> 1.3)
|
cucumber-gherkin (~> 15.0, >= 15.0.2)
|
||||||
gherkin (~> 5.1.0)
|
cucumber-html-formatter (~> 9.0, >= 9.0.0)
|
||||||
multi_json (>= 1.7.5, < 2.0)
|
cucumber-messages (~> 13.1, >= 13.1.0)
|
||||||
multi_test (>= 0.1.2)
|
cucumber-wire (~> 4.0, >= 4.0.1)
|
||||||
|
diff-lcs (~> 1.4, >= 1.4.4)
|
||||||
|
multi_test (~> 0.1, >= 0.1.2)
|
||||||
|
sys-uname (~> 1.2, >= 1.2.1)
|
||||||
cucumber-api-steps (0.14.0)
|
cucumber-api-steps (0.14.0)
|
||||||
cucumber (>= 2.0.2)
|
cucumber (>= 2.0.2)
|
||||||
jsonpath (>= 0.1.2)
|
jsonpath (>= 0.1.2)
|
||||||
cucumber-core (3.2.1)
|
cucumber-core (8.0.1)
|
||||||
backports (>= 3.8.0)
|
cucumber-gherkin (~> 15.0, >= 15.0.2)
|
||||||
cucumber-tag_expressions (~> 1.1.0)
|
cucumber-messages (~> 13.0, >= 13.0.1)
|
||||||
gherkin (~> 5.0)
|
cucumber-tag-expressions (~> 2.0, >= 2.0.4)
|
||||||
cucumber-expressions (6.0.1)
|
cucumber-create-meta (2.0.4)
|
||||||
cucumber-rails (2.0.0)
|
cucumber-messages (~> 13.1, >= 13.1.0)
|
||||||
capybara (>= 2.12, < 4)
|
sys-uname (~> 1.2, >= 1.2.1)
|
||||||
cucumber (>= 3.0.2, < 4)
|
cucumber-cucumber-expressions (10.3.0)
|
||||||
mime-types (>= 2.0, < 4)
|
cucumber-gherkin (15.0.2)
|
||||||
|
cucumber-messages (~> 13.0, >= 13.0.1)
|
||||||
|
cucumber-html-formatter (9.0.0)
|
||||||
|
cucumber-messages (~> 13.0, >= 13.0.1)
|
||||||
|
cucumber-messages (13.2.1)
|
||||||
|
protobuf-cucumber (~> 3.10, >= 3.10.8)
|
||||||
|
cucumber-rails (2.3.0)
|
||||||
|
capybara (>= 2.18, < 4)
|
||||||
|
cucumber (>= 3.0.2, < 6)
|
||||||
|
mime-types (~> 3.2)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
railties (>= 4.2, < 7)
|
railties (>= 5.0, < 7)
|
||||||
cucumber-tag_expressions (1.1.1)
|
cucumber-tag-expressions (2.0.4)
|
||||||
cucumber-wire (0.0.1)
|
cucumber-wire (4.0.1)
|
||||||
database_cleaner (1.8.3)
|
cucumber-core (~> 8.0, >= 8.0.1)
|
||||||
|
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
|
||||||
|
cucumber-messages (~> 13.0, >= 13.0.1)
|
||||||
|
database_cleaner (1.8.5)
|
||||||
|
database_cleaner-active_record (1.8.0)
|
||||||
|
activerecord
|
||||||
|
database_cleaner (~> 1.8.0)
|
||||||
devise (4.7.3)
|
devise (4.7.3)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
|
|
@ -198,7 +215,7 @@ GEM
|
||||||
diaspora_federation (= 0.2.6)
|
diaspora_federation (= 0.2.6)
|
||||||
fabrication (~> 2.16)
|
fabrication (~> 2.16)
|
||||||
uuid (~> 2.3, >= 2.3.8)
|
uuid (~> 2.3, >= 2.3.8)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.4.4)
|
||||||
docile (1.3.2)
|
docile (1.3.2)
|
||||||
domain_name (0.5.20190701)
|
domain_name (0.5.20190701)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
|
|
@ -269,7 +286,6 @@ GEM
|
||||||
ruby-progressbar (~> 1.4)
|
ruby-progressbar (~> 1.4)
|
||||||
get_process_mem (0.2.5)
|
get_process_mem (0.2.5)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
gherkin (5.1.0)
|
|
||||||
gitlab (4.14.0)
|
gitlab (4.14.0)
|
||||||
httparty (~> 0.14, >= 0.14.0)
|
httparty (~> 0.14, >= 0.14.0)
|
||||||
terminal-table (~> 1.5, >= 1.5.1)
|
terminal-table (~> 1.5, >= 1.5.1)
|
||||||
|
|
@ -378,9 +394,10 @@ GEM
|
||||||
memoizable (0.4.2)
|
memoizable (0.4.2)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
|
middleware (0.1.0)
|
||||||
mime-types (3.3.1)
|
mime-types (3.3.1)
|
||||||
mime-types-data (~> 3.2015)
|
mime-types-data (~> 3.2015)
|
||||||
mime-types-data (3.2019.1009)
|
mime-types-data (3.2021.0225)
|
||||||
mini_magick (4.10.1)
|
mini_magick (4.10.1)
|
||||||
mini_mime (1.1.0)
|
mini_mime (1.1.0)
|
||||||
mini_portile2 (2.5.0)
|
mini_portile2 (2.5.0)
|
||||||
|
|
@ -388,7 +405,7 @@ GEM
|
||||||
mobile-fu (1.4.0)
|
mobile-fu (1.4.0)
|
||||||
rack-mobile-detect
|
rack-mobile-detect
|
||||||
rails
|
rails
|
||||||
multi_json (1.14.1)
|
multi_json (1.15.0)
|
||||||
multi_test (0.1.2)
|
multi_test (0.1.2)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
|
|
@ -463,6 +480,11 @@ GEM
|
||||||
pronto-scss (0.10.0)
|
pronto-scss (0.10.0)
|
||||||
pronto (~> 0.10.0)
|
pronto (~> 0.10.0)
|
||||||
scss_lint (~> 0.43, >= 0.43.0)
|
scss_lint (~> 0.43, >= 0.43.0)
|
||||||
|
protobuf-cucumber (3.10.8)
|
||||||
|
activesupport (>= 3.2)
|
||||||
|
middleware
|
||||||
|
thor
|
||||||
|
thread_safe
|
||||||
pry (0.13.1)
|
pry (0.13.1)
|
||||||
coderay (~> 1.1)
|
coderay (~> 1.1)
|
||||||
method_source (~> 1.0)
|
method_source (~> 1.0)
|
||||||
|
|
@ -580,7 +602,7 @@ GEM
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
redcarpet (3.5.1)
|
redcarpet (3.5.1)
|
||||||
redis (4.2.5)
|
redis (4.2.5)
|
||||||
regexp_parser (1.7.0)
|
regexp_parser (2.1.1)
|
||||||
request_store (1.5.0)
|
request_store (1.5.0)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
|
|
@ -678,6 +700,8 @@ GEM
|
||||||
activesupport (>= 3)
|
activesupport (>= 3)
|
||||||
attr_required (>= 0.0.5)
|
attr_required (>= 0.0.5)
|
||||||
httpclient (>= 2.4)
|
httpclient (>= 2.4)
|
||||||
|
sys-uname (1.2.2)
|
||||||
|
ffi (~> 1.1)
|
||||||
sysexits (1.2.0)
|
sysexits (1.2.0)
|
||||||
systemu (2.6.5)
|
systemu (2.6.5)
|
||||||
temple (0.8.2)
|
temple (0.8.2)
|
||||||
|
|
@ -765,14 +789,14 @@ DEPENDENCIES
|
||||||
autoprefixer-rails (= 10.2.4.0)
|
autoprefixer-rails (= 10.2.4.0)
|
||||||
bootstrap-sass (= 3.4.1)
|
bootstrap-sass (= 3.4.1)
|
||||||
bootstrap-switch-rails (= 3.3.5)
|
bootstrap-switch-rails (= 3.3.5)
|
||||||
capybara (= 3.15.0)
|
capybara (= 3.35.3)
|
||||||
carrierwave (= 1.3.1)
|
carrierwave (= 1.3.1)
|
||||||
chrome_remote (= 0.3.0)
|
chrome_remote (= 0.3.0)
|
||||||
compass-rails (= 3.1.0)
|
compass-rails (= 3.1.0)
|
||||||
configurate (= 0.5.0)
|
configurate (= 0.5.0)
|
||||||
cucumber-api-steps (= 0.14)
|
cucumber-api-steps (= 0.14)
|
||||||
cucumber-rails (= 2.0.0)
|
cucumber-rails (= 2.3.0)
|
||||||
database_cleaner (= 1.8.3)
|
database_cleaner-active_record (= 1.8.0)
|
||||||
devise (= 4.7.3)
|
devise (= 4.7.3)
|
||||||
devise-two-factor (= 4.0.0)
|
devise-two-factor (= 4.0.0)
|
||||||
devise_lastseenable (= 0.0.6)
|
devise_lastseenable (= 0.0.6)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ ENV["RAILS_ENV"] ||= "test"
|
||||||
# Have all rests run with english browser locale
|
# Have all rests run with english browser locale
|
||||||
ENV["LANG"] = "C"
|
ENV["LANG"] = "C"
|
||||||
|
|
||||||
|
require "database_cleaner/active_record"
|
||||||
require "cucumber/rails"
|
require "cucumber/rails"
|
||||||
|
|
||||||
require "capybara/rails"
|
require "capybara/rails"
|
||||||
|
|
@ -52,6 +53,7 @@ Capybara.default_max_wait_time = 30
|
||||||
# of your scenarios, as this makes it hard to discover errors in your application.
|
# of your scenarios, as this makes it hard to discover errors in your application.
|
||||||
ActionController::Base.allow_rescue = false
|
ActionController::Base.allow_rescue = false
|
||||||
|
|
||||||
|
DatabaseCleaner.strategy = :truncation
|
||||||
Cucumber::Rails::Database.autorun_database_cleaner = true
|
Cucumber::Rails::Database.autorun_database_cleaner = true
|
||||||
Cucumber::Rails::World.use_transactional_tests = false
|
Cucumber::Rails::World.use_transactional_tests = false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ begin
|
||||||
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
||||||
t.fork = true # You may get faster startup if you set this to false
|
t.fork = true # You may get faster startup if you set this to false
|
||||||
t.profile = 'default'
|
t.profile = 'default'
|
||||||
t.cucumber_opts = %w[--retry 3 --no-strict-flaky --fail-fast]
|
t.cucumber_opts = %w[--retry 3 --no-strict-flaky --fail-fast --publish-quiet]
|
||||||
end
|
end
|
||||||
|
|
||||||
Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
|
Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue