Skip to content

Commit edd127e

Browse files
author
claudiofullscreen
authored
Merge pull request #24 from Fullscreen/fix-tests
Fix tests
2 parents e177c3b + 2ae4a5a commit edd127e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: ruby
22
cache: bundler
3-
notifications:
4-
email: false
53
rvm:
64
- 2.2.2
75
script:

spec/yt/annotations_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,13 @@
254254
let(:video_id) { 'jeCSnH9mQFo' }
255255

256256
it 'also returns the featured video' do
257-
expect(annotations[5]).to be_a Yt::Annotations::Note
258-
expect(annotations[5].link[:type]).to be :website
257+
note = annotations.find{|a| a.starts_at == 72.9}
258+
expect(note).to be_a Yt::Annotations::Note
259+
expect(note.link[:type]).to be :website
259260

260-
expect(annotations[6]).to be_a Yt::Annotations::Spotlight
261-
expect(annotations[6].link[:type]).to be :website
261+
spotlight = annotations.find{|a| a.link[:url] == 'http://www.fox.com/masterchef-junior/'}
262+
expect(spotlight).to be_a Yt::Annotations::Spotlight
263+
expect(spotlight.link[:type]).to be :website
262264
end
263265
end
264266

0 commit comments

Comments
 (0)