From 2aaa372ec8f44f170a1b0ba033fefdf10c64812c Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Tue, 31 Oct 2023 18:09:11 +0330 Subject: [PATCH] Improve spec helper docs --- spec/shakapacker/spec_helper_initializer.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/shakapacker/spec_helper_initializer.rb b/spec/shakapacker/spec_helper_initializer.rb index 400b7b52..b3131a84 100644 --- a/spec/shakapacker/spec_helper_initializer.rb +++ b/spec/shakapacker/spec_helper_initializer.rb @@ -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|