Add new RailsHelpers module for specs

This commit is contained in:
Ash McKenzie 2019-08-28 11:53:29 +10:00
parent 5822c09296
commit 834f7861e5
No known key found for this signature in database
GPG Key ID: A1253B4953E8D3E6
1 changed files with 7 additions and 0 deletions

View File

@ -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