Commit e6ffb35b authored by Ash McKenzie's avatar Ash McKenzie

Add new RailsHelpers module for specs

parent d0f3b8b1
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment