Skip to content
This repository
Browse code

fixed broken test suite by adding http auth parameters to FakeWeb stu…

…bbed url

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  • Loading branch information...
commit cdd9dba19f6edc21f1b7eefb66db133dec682423 1 parent 74f2160
Obie Fernandez obie authored jnunemaker committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 test/twitter/httpauth_test.rb
4 test/twitter/httpauth_test.rb
@@ -41,7 +41,7 @@ class HTTPAuthTest < Test::Unit::TestCase
41 41 end
42 42
43 43 should "be able to get" do
44   - stub_get('http://twitter.com:80/statuses/user_timeline.json', 'user_timeline.json')
  44 + stub_get('http://username:password@twitter.com:80/statuses/user_timeline.json', 'user_timeline.json')
45 45 response = @twitter.get('/statuses/user_timeline.json')
46 46 response.should == fixture_file('user_timeline.json')
47 47 end
@@ -57,7 +57,7 @@ class HTTPAuthTest < Test::Unit::TestCase
57 57 end
58 58
59 59 should "be able to post" do
60   - stub_post('http://twitter.com:80/statuses/update.json', 'status.json')
  60 + stub_post('http://username:password@twitter.com:80/statuses/update.json', 'status.json')
61 61 response = @twitter.post('/statuses/update.json', :text => 'My update.')
62 62 response.should == fixture_file('status.json')
63 63 end

0 comments on commit cdd9dba

Please sign in to comment.
Something went wrong with that request. Please try again.