Capybara test initializer removed

Apparently "system tests" are a better way to handle them.
This commit is contained in:
Christoph Haas 2020-10-30 16:38:38 +01:00
parent f1c3982985
commit 2700289ff8
3 changed files with 0 additions and 48 deletions

View file

@ -79,10 +79,6 @@ group :development, :test do
gem 'byebug', platform: :mri
end
group :test do
gem "minitest-rails-capybara"
end
# TODO… https://github.com/galetahub/simple-captcha
# Captcha for anonymous reports
# gem "galetahub-simple_captcha", :require => "simple_captcha"

View file

@ -64,8 +64,6 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ansi (1.5.0)
ast (2.4.1)
babel-source (5.8.35)
@ -86,14 +84,6 @@ GEM
msgpack (~> 1.0)
builder (3.2.4)
byebug (11.1.3)
capybara (3.33.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (~> 1.5)
xpath (~> 3.2)
choice (0.2.0)
climate_control (0.2.0)
coderay (1.1.3)
@ -111,8 +101,6 @@ GEM
e2mmap (0.1.0)
erubi (1.9.0)
execjs (2.7.0)
fancybox-rails (0.3.1)
railties (>= 3.1.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.13.1)
@ -185,9 +173,6 @@ GEM
minitest-rails (6.0.1)
minitest (~> 5.10)
railties (~> 6.0.0)
minitest-rails-capybara (0.0.2)
capybara
minitest-rails
minitest-reporters (1.4.2)
ansi
builder
@ -243,7 +228,6 @@ GEM
pg_search (2.3.2)
activerecord (>= 5.2)
activesupport (>= 5.2)
public_suffix (4.0.5)
puma (3.12.6)
rack (2.2.3)
rack-contrib (2.2.0)
@ -396,8 +380,6 @@ GEM
will_paginate (3.3.0)
will_paginate-foundation (6.2.1)
will_paginate (>= 3.0.3)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.25)
zeitwerk (2.4.0)
@ -413,7 +395,6 @@ DEPENDENCIES
bzip2-ruby!
cookies_eu
devise
fancybox-rails
font-awesome-rails
foundation-rails (~> 6.6)
guard-minitest
@ -425,7 +406,6 @@ DEPENDENCIES
meta_request
mini_magick
minitest-rails
minitest-rails-capybara
minitest-reporters
omniauth
omniauth-amazon

View file

@ -8,12 +8,6 @@ Minitest::Reporters.use!
# require "minitest/rails"
# require "minitest/autorun"
# To add Capybara feature tests add `gem "minitest-rails-capybara"`
# to the test group in the Gemfile and uncomment the following:
require "minitest/rails/capybara"
require 'capybara/rails'
require 'capybara/minitest'
# Uncomment for awesome colorful output
require "minitest/pride"
@ -25,21 +19,3 @@ end
class ActionController::TestCase
include Devise::Test::ControllerHelpers
end
# Capybara-based tests
class ActionDispatch::IntegrationTest
# Make the Capybara DSL available in all integration tests
include Capybara::DSL
# Make `assert_*` methods behave like Minitest assertions
include Capybara::Minitest::Assertions
# Help simulate logins
include Devise::Test::IntegrationHelpers
# Reset sessions and driver between tests
# Use super wherever this method is redefined in your individual test classes
def teardown
Capybara.reset_sessions!
Capybara.use_default_driver
end
end