diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-28 11:53:29 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-28 11:53:29 +1000 |
commit | 834f7861e57769d47ebf4dc7ac6b57b39064f8fc (patch) | |
tree | c5d1524b58bfc3a1b8318a270a5ca9d13842835d | |
parent | 5822c09296e2439df3150d2ac7007396f66f3210 (diff) | |
download | gitlab-ce-834f7861e57769d47ebf4dc7ac6b57b39064f8fc.tar.gz |
Add new RailsHelpers module for specs
-rw-r--r-- | spec/support/helpers/rails_helpers.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/helpers/rails_helpers.rb b/spec/support/helpers/rails_helpers.rb new file mode 100644 index 00000000000..e1875b2fb15 --- /dev/null +++ b/spec/support/helpers/rails_helpers.rb @@ -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 |