Skip to content

Commit

Permalink
Merge 6866fe3 into 60eb256
Browse files Browse the repository at this point in the history
  • Loading branch information
ymkjp committed Aug 10, 2016
2 parents 60eb256 + 6866fe3 commit c4bdea4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/twitter/rest/tweets_spec.rb
Expand Up @@ -106,6 +106,13 @@
expect(a_get('/1.1/statuses/show/540897316908331009.json')).to have_been_made
end
end
context 'with a status URI followed by /photo/1' do
it 'requests the correct resource' do
tweet = URI.parse('https://twitter.com/sferik/status/540897316908331009/photo/1')
@client.status(tweet)
expect(a_get('/1.1/statuses/show/540897316908331009.json')).to have_been_made
end
end
context 'with a Tweet passed' do
it 'requests the correct resource' do
tweet = Twitter::Tweet.new(id: 540_897_316_908_331_009)
Expand Down

0 comments on commit c4bdea4

Please sign in to comment.