spec/hooloo/video_spec.rb in hooloo-0.1.1 vs spec/hooloo/video_spec.rb in hooloo-0.2.0
- old
+ new
@@ -5,6 +5,12 @@
let(:video) { Hooloo::Video.new 407993 }
it 'should split the copyright field on commas' do
video.copyright.must_be_instance_of Array
video.copyright.must_include "Reki Kawahara"
end
+ it 'should retrieve the oembed data' do
+ video.oembed.must_be_instance_of Hash
+ video.oembed.must_include 'title'
+ video.oembed.must_include 'thumbnail_url'
+ video.oembed.must_include 'large_thumbnail_url'
+ end
end