Skip to content
Snippets Groups Projects
Verified Commit e6ffb35b authored by Ash McKenzie's avatar Ash McKenzie :two:
Browse files

Add new RailsHelpers module for specs

parent d0f3b8b1
No related branches found
No related tags found
1 merge request!15715Add new RailsHelpers module for specs
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment