Skip to content

Commit

Permalink
Cleanup spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Nov 11, 2024
1 parent 4cebc41 commit a6a7c84
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)
Expand Down

0 comments on commit a6a7c84

Please sign in to comment.