summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-08-14 19:57:37 -0700
committerAndre Arko <andre@arko.net>2015-08-14 19:59:36 -0700
commit84445647b50cc230263252b2992a14310c3b7e4c (patch)
treef6c533e0ff5ad4392030bc79d24bc843073f8f5f
parentbce3baf304408651bb356435f944252df39fff64 (diff)
downloadbundler-84445647b50cc230263252b2992a14310c3b7e4c.tar.gz
make rubocop happyrebase-3833
-rw-r--r--spec/bundler/fetcher_spec.rb4
-rw-r--r--spec/support/helpers.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb
index d99371f3b1..65bf1017e0 100644
--- a/spec/bundler/fetcher_spec.rb
+++ b/spec/bundler/fetcher_spec.rb
@@ -14,7 +14,7 @@ describe Bundler::Fetcher do
expect(fetcher.http_proxy).to be_nil
end
it "consider environment vars when determine proxy" do
- with_env_vars({"HTTP_PROXY" => "http://proxy-example.com"}) do
+ with_env_vars("HTTP_PROXY" => "http://proxy-example.com") do
expect(fetcher.http_proxy).to match("http://proxy-example.com")
end
end
@@ -27,7 +27,7 @@ describe Bundler::Fetcher do
expect(fetcher.http_proxy).to match("http://proxy-example2.com")
end
it "consider Gem.configuration when determine proxy" do
- with_env_vars({"HTTP_PROXY" => "http://proxy-example.com"}) do
+ with_env_vars("HTTP_PROXY" => "http://proxy-example.com") do
expect(fetcher.http_proxy).to match("http://proxy-example2.com")
end
end
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 34ecf32dc6..228bf7699b 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -380,7 +380,7 @@ module Spec
def with_env_vars(env_hash, &block)
current_values = {}
- env_hash.each do |k,v|
+ env_hash.each do |k, v|
current_values[k] = ENV[k]
ENV[k] = v
end