From 06d73c0ec177f69d63accb2b7a2d6a22b63fd79e Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 9 Dec 2018 05:30:12 +0500 Subject: [PATCH] Remove unnecessary code --- .rubocop.yml | 1 - spec/rails_helper.rb | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f15d98f..1a342c0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -71,7 +71,6 @@ Style/GlobalVars: Exclude: - 'features/support/env.rb' - 'spec/spec_helper.rb' - - 'spec/rails_helper.rb' Style/RescueModifier: Exclude: diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index ea293e7..7fae015 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,11 +1,8 @@ # frozen_string_literal: true # This should be on the top of the file. -$coverage = true -require 'simplecov' - -# This file is copied to spec/ when you run 'rails generate rspec:install' require 'spec_helper' + ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../config/environment', __dir__)