Skip to content

Commit

Permalink
Improve spec helper docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Oct 31, 2023
1 parent e011343 commit 2aaa372
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/shakapacker/spec_helper_initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def with_rails_env(env)
end

# Temportarily set env variables to a custom value
# arg: a hash with key:value for each custom env
# Keys could be string or symbol
#
# Params
# +custom_env_hash+:: A hash with key:value for each custom env.
# Keys could be string or symbol
def with_env_variable(custom_env_hash)
original_env = {}
custom_env_hash.each do |key, new_value|
Expand Down

0 comments on commit 2aaa372

Please sign in to comment.