diff --git a/spec/dummy/spec/rails_helper.rb b/spec/dummy/spec/rails_helper.rb index 491834121..78bcf9027 100644 --- a/spec/dummy/spec/rails_helper.rb +++ b/spec/dummy/spec/rails_helper.rb @@ -1,19 +1,18 @@ # frozen_string_literal: true -# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= "test" require_relative "simplecov_helper" +require_relative "spec_helper" + require_relative("../config/environment") # Prevent database truncation if the environment is production abort("The Rails environment is running in production mode!") if Rails.env.production? -require_relative "spec_helper" require "rspec/rails" require "capybara/rspec" require "capybara/poltergeist" -require "capybara/poltergeist" require "capybara-screenshot/rspec" # Add additional requires below this line. Rails is not loaded until this point!