Skip to content

Commit 4e8b60e

Browse files
committed
Fix Rails generators
1 parent 7f760bc commit 4e8b60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
require File.expand_path('../config/environment', __dir__)
1818
# Prevent database truncation if the environment is production
1919
abort('The Rails environment is running in production mode!') if Rails.env.production?
20+
return unless Rails.env.test?
2021
require 'rspec/core'
2122
require 'spec_helper'
2223
require 'rspec/rails'

0 commit comments

Comments
 (0)