spec/lib/embeddable/concerns/embeddable_spec.rb in embeddable-0.0.1 vs spec/lib/embeddable/concerns/embeddable_spec.rb in embeddable-0.0.2
- old
+ new
@@ -18,9 +18,18 @@
Dummy.embeddable :video
end.to raise_error KeyError
end
end
+ describe 'Vimeo' do
+ context 'with http://vimeo.com/...' do
+ before { subject.video_url = 'https://vimeo.com/77949044' }
+
+ its(:video_type) { should eq :vimeo }
+ its(:video_id) { should eq '77949044' }
+ end
+ end
+
describe 'YouTube' do
context 'with http://youtube.com/watch?v=...' do
before { subject.video_url = 'http://youtube.com/watch?v=1&feature=foo' }