Permalink
Browse files

aligned hash rockets

  • Loading branch information...
mvidner committed Apr 23, 2015
1 parent 6dc3292 commit 9a198f072857e9c032b0ff675cf924fa79ad98e5
Showing with 8 additions and 8 deletions.
  1. +2 −2 src/modules/Proxy.rb
  2. +6 −6 test/write_test.rb
View
@@ -144,9 +144,9 @@ def WriteCurlrc
options = {
"--proxy-user" => proxyuser,
# bnc#305163
"--proxy" => @http,
"--proxy" => @http,
# bsc#923788
"--noproxy" => @no
"--noproxy" => @no
}
# proxy is used, write /root/.curlrc
View
@@ -22,7 +22,7 @@
end
it "writes proxy settings, and a comment, when proxy is enabled" do
subject.Import({ "enabled" => true,
subject.Import({ "enabled" => true,
"http_proxy" => "proxy.example.org:3128" })
expect(Yast::SCR).to receive(:Write).
@@ -49,9 +49,9 @@
end
it "writes a no-proxy setting" do
subject.Import({ "enabled" => true,
subject.Import({ "enabled" => true,
"http_proxy" => "proxy.example.org:3128",
"no_proxy" => "example.org,example.com,localhost" })
"no_proxy" => "example.org,example.com,localhost" })
expect(Yast::SCR).to receive(:Write).
with(path(".root.curlrc.\"--noproxy\""),
"example.org,example.com,localhost").
@@ -65,9 +65,9 @@
end
it "escapes user name" do
subject.Import({ "enabled" => true,
"http_proxy" => "proxy.example.org:3128",
"proxy_user" => "User\\Domain",
subject.Import({ "enabled" => true,
"http_proxy" => "proxy.example.org:3128",
"proxy_user" => "User\\Domain",
"proxy_password" => "P" })
expect(Yast::SCR).to receive(:Write).

0 comments on commit 9a198f0

Please sign in to comment.