From a6a7c84f0bc9fd7b38ca5ce534f86dfc7d4d0243 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Tue, 12 Nov 2024 00:42:08 +0100 Subject: [PATCH] Cleanup spec_helper --- spec/spec_helper.rb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cca69c7..4c39174 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,14 +13,7 @@ # Load test gems require 'rspec/rails' -require 'capybara/rspec' -require 'capybara/rails' -require 'capybara-screenshot/rspec' -require 'database_cleaner' -require 'rediska' -require 'resque' require 'sidekiq/api' -require 'timecop' # Load our own config require_relative 'config_rspec' @@ -31,13 +24,7 @@ Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f } def test_request - if Rails.version >= '5.1' - ActionController::TestRequest.create(ActionController::Metal) - elsif Rails.version.start_with?('5') - ActionController::TestRequest.create - else - ActionController::TestRequest.new - end + ActionController::TestRequest.create(ActionController::Metal) end def parse_xml(response)