Skip to content

Commit

Permalink
Fix offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed May 21, 2018
1 parent 7093679 commit aa35911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/dnsimple/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
format: :json,
basic_auth: { username: "user", password: "pass" },
headers: { 'Accept' => 'application/json', 'User-Agent' => Dnsimple::Default::USER_AGENT }
)
)
.and_return(double('response', code: 200))

subject.request(:get, 'foo')
Expand All @@ -145,7 +145,7 @@
query: { foo: "bar" },
basic_auth: { username: "user", password: "pass" },
headers: { 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'User-Agent' => Dnsimple::Default::USER_AGENT, "Custom" => "Header" }
)
)
.and_return(double('response', code: 200))

subject.request(:put, 'foo', { something: "else" }, { query: { foo: "bar" }, headers: { "Custom" => "Header" } })
Expand All @@ -159,7 +159,7 @@
body: { something: "else" },
basic_auth: { username: "user", password: "pass" },
headers: { 'Accept' => 'application/json', 'Content-Type' => 'application/x-www-form-urlencoded', 'User-Agent' => Dnsimple::Default::USER_AGENT }
)
)
.and_return(double('response', code: 200))

subject.request(:post, 'foo', { something: "else" }, { headers: { "Content-Type" => "application/x-www-form-urlencoded" } })
Expand All @@ -173,7 +173,7 @@
http_proxyaddr: "example-proxy.com",
http_proxyport: "4321",
headers: { 'Accept' => 'application/json', 'User-Agent' => Dnsimple::Default::USER_AGENT }
)
)
.and_return(double('response', code: 200))

subject = described_class.new(proxy: "example-proxy.com:4321")
Expand All @@ -186,7 +186,7 @@
"#{subject.base_url}test",
format: :json,
headers: hash_including("User-Agent" => "#{Dnsimple::Default::USER_AGENT} customAgent")
)
)
.and_return(double("response", code: 200))

subject = described_class.new(user_agent: "customAgent")
Expand Down

0 comments on commit aa35911

Please sign in to comment.