Add new RailsHelpers module for specs
This commit is contained in:
parent
5822c09296
commit
834f7861e5
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RailsHelpers
|
||||
def stub_rails_env(env_name)
|
||||
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new(env_name))
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue