Skip to content

Commit

Permalink
add support for video entities
Browse files Browse the repository at this point in the history
  • Loading branch information
stve authored and sferik committed Sep 6, 2015
1 parent 90e8a0e commit a4a78ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/helper.rb
Expand Up @@ -16,7 +16,7 @@
require 'timecop'
require 'webmock/rspec'

require File.expand_path('../support/media_object_examples', __FILE__)
require_relative 'support/media_object_examples'

WebMock.disable_net_connect!(allow: 'coveralls.io')

Expand Down
6 changes: 3 additions & 3 deletions spec/twitter/media_factory_spec.rb
Expand Up @@ -2,15 +2,15 @@

describe Twitter::MediaFactory do
describe '.new' do
it 'generates a Photo' do
it 'generates a photo' do
media = Twitter::MediaFactory.new(id: 1, type: 'photo')
expect(media).to be_a Twitter::Media::Photo
end
it 'generates a AnimatedGif' do
it 'generates an animated GIF' do
media = Twitter::MediaFactory.new(id: 1, type: 'animated_gif')
expect(media).to be_a Twitter::Media::AnimatedGif
end
it 'generates a Video' do
it 'generates a video' do
media = Twitter::MediaFactory.new(id: 1, type: 'video')
expect(media).to be_a Twitter::Media::Video
end
Expand Down

0 comments on commit a4a78ba

Please sign in to comment.