Re: [rspec] [Feature Request] Do not set ENV['RAILS_ENV'] = 'test'

2020-12-05 Thread Phil Pirozhkov
> RAILS_ENV seems to be set but never used afterIt's because it's for Rails to use, not RSpecWhat you plan is quite an untypical approach to the‎ problem.Since you stub those external services in 'test'‎

[rspec] [Feature Request] Do not set ENV['RAILS_ENV'] = 'test'

2020-12-05 Thread Kiril Mitov
Hi, I would like to propose a feature where the RAILS_ENV is set to test only when it is not set previously. Something like ``` task :prepare do ENV['RACK_ENV'] = ENV['RAILS_ENV'] ||= 'test' if Rails.configuration.generators.options[:rails][:orm] == :active_record if