Browse files

For some reason the old stubbing fails

  • Loading branch information...
1 parent 9b68bfc commit 1b2c3abdb5f3f7cb5b03ad0a7d5bf2b5114efa02 @vesan committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/kippt/client_spec.rb
View
4 spec/kippt/client_spec.rb
@@ -25,7 +25,7 @@
describe "default headers" do
it "includes correct mime-type and user-agent" do
- stub_request(:get, "https://bob:secret@kippt.com/foobar").
+ stub_request(:get, "https://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
@@ -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://bob:secret@kippt.com/error_path").
+ stub_request(:get, "https://kippt.com/error_path").
to_return(:status => 401, :body => "{\"message\": \"Something horrible.\"}")
lambda {

0 comments on commit 1b2c3ab

Please sign in to comment.