Skip to content

Commit e6ecf55

Browse files
kjgJonRowe
authored andcommitted
Load spec_helper before Rails (#1795)
so that things in spec_helper, especially coverage tools, have a chance to load before the Rails code loads
1 parent 8bee7df commit e6ecf55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rspec/install/templates/spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This file is copied to spec/ when you run 'rails generate rspec:install'
2+
require 'spec_helper'
23
ENV['RAILS_ENV'] ||= 'test'
34
require File.expand_path('../../config/environment', __FILE__)
45
# Prevent database truncation if the environment is production
56
abort("The Rails environment is running in production mode!") if Rails.env.production?
6-
require 'spec_helper'
77
require 'rspec/rails'
88
# Add additional requires below this line. Rails is not loaded until this point!
99

0 commit comments

Comments
 (0)