Skip to content

Commit

Permalink
fixed broken test suite by adding http auth parameters to FakeWeb stu…
Browse files Browse the repository at this point in the history
…bbed url

Signed-off-by: John Nunemaker <[email protected]>
  • Loading branch information
Obie Fernandez authored and jnunemaker committed Jun 27, 2009
1 parent 74f2160 commit cdd9dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/twitter/httpauth_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HTTPAuthTest < Test::Unit::TestCase
end

should "be able to get" do
stub_get('http://twitter.com:80/statuses/user_timeline.json', 'user_timeline.json')
stub_get('http://username:password@twitter.com:80/statuses/user_timeline.json', 'user_timeline.json')
response = @twitter.get('/statuses/user_timeline.json')
response.should == fixture_file('user_timeline.json')
end
Expand All @@ -57,7 +57,7 @@ class HTTPAuthTest < Test::Unit::TestCase
end

should "be able to post" do
stub_post('http://twitter.com:80/statuses/update.json', 'status.json')
stub_post('http://username:password@twitter.com:80/statuses/update.json', 'status.json')
response = @twitter.post('/statuses/update.json', :text => 'My update.')
response.should == fixture_file('status.json')
end
Expand Down

0 comments on commit cdd9dba

Please sign in to comment.