Skip to content

Commit

Permalink
Changing back to having the basic auth in URLs
Browse files Browse the repository at this point in the history
Running tests without bundle exec is not that wise.
  • Loading branch information
vesan committed Jul 19, 2012
1 parent 54d20b2 commit 23d9f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/kippt/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

describe "default headers" do
it "includes correct mime-type and user-agent" do
stub_request(:get, "https://kippt.com/foobar").
stub_request(:get, "https://bob:secret@kippt.com/foobar").
with(:headers => {'Accept'=>'*/*', 'Content-Type'=>'application/vnd.kippt.20120429+json', 'User-Agent'=>"KipptRubyGem #{Kippt::VERSION},vesa@vesavanska.com,https://github.com/vesan/kippt", 'X-Kippt-Client'=>"KipptRubyGem #{Kippt::VERSION},vesa@vesavanska.com,https://github.com/vesan/kippt"})
subject.get("/foobar")
end
Expand All @@ -34,7 +34,7 @@
describe "error handling" do
context "when response status is 401" do
it "raises Kippt::APIError with message received from the server" do
stub_request(:get, "https://kippt.com/error_path").
stub_request(:get, "https://bob:secret@kippt.com/error_path").
to_return(:status => 401, :body => "{\"message\": \"Something horrible.\"}")

lambda {
Expand Down

0 comments on commit 23d9f71

Please sign in to comment.