We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f760bc commit 4e8b60eCopy full SHA for 4e8b60e
spec/rails_helper.rb
@@ -17,6 +17,7 @@
17
require File.expand_path('../config/environment', __dir__)
18
# Prevent database truncation if the environment is production
19
abort('The Rails environment is running in production mode!') if Rails.env.production?
20
+return unless Rails.env.test?
21
require 'rspec/core'
22
require 'spec_helper'
23
require 'rspec/rails'
0 commit comments