File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11language : ruby
22cache : bundler
3- notifications :
4- email : false
53rvm :
64 - 2.2.2
75script :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments