Skip to content
Permalink
Browse files

Merge 8d1eebc into 844818c

  • Loading branch information
marckohlbrugge committed Jul 8, 2019
2 parents 844818c + 8d1eebc commit 4edddf50df37c2bae67dc56699883cc0628492f9
Showing with 7 additions and 0 deletions.
  1. BIN spec/fixtures/40s.mp4
  2. +7 −0 spec/twitter/rest/tweets_spec.rb
BIN +133 KB spec/fixtures/40s.mp4
Binary file not shown.
@@ -467,6 +467,13 @@
expect(a_post('/1.1/statuses/update.json')).to have_been_made
end
end
context 'with a 30+ second mp4 video' do
it 'requests the correct resources' do
@client.update_with_media('You always have options', fixture('40s.mp4'))
expect(a_request(:post, 'https://upload.twitter.com/1.1/media/upload.json')).to have_been_made.times(3)
expect(a_post('/1.1/statuses/update.json')).to have_been_made
end
end
context 'with a Tempfile' do
it 'requests the correct resource' do
@client.update_with_media('You always have options', Tempfile.new('tmp'))

0 comments on commit 4edddf5

Please sign in to comment.
You can’t perform that action at this time.