spec/shared/set_env.rb in aptible-billing-0.1.0 vs spec/shared/set_env.rb in aptible-billing-0.1.1

- old
+ new

@@ -1,10 +1,10 @@ -def set_env(*args, &block) +def set_env(*args, &_block) hash = args.first.is_a?(Hash) ? args.first : Hash[*args] old_values = Hash[hash.map { |k, _| [k, ENV[k]] }] begin hash.each { |k, v| ENV[k] = v } yield ensure old_values.each { |k, v| ENV[k] = v } end -end \ No newline at end of file +end