Skip to content

Commit 4827598

Browse files
authored
Fix Rails generators (#720)
1 parent 7f760bc commit 4827598

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/rails_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
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?
21+
2022
require 'rspec/core'
2123
require 'spec_helper'
2224
require 'rspec/rails'

0 commit comments

Comments
 (0)