Skip to content

Commit

Permalink
count Featured (not Branding) as in-video programming
Browse files Browse the repository at this point in the history
  • Loading branch information
kangkyu committed Jul 3, 2017
1 parent 0c0863e commit 0300f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/yt/video_audit/invideo_programming.rb
Expand Up @@ -16,7 +16,7 @@ def description

def valid?(video)
Yt::Annotations.for(video.id).any? do |annotation|
annotation.instance_of? Yt::Annotations::Branding
annotation.instance_of? Yt::Annotations::Featured
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/yt/audit_test.rb
Expand Up @@ -63,7 +63,7 @@ def test_channel_audit

assert_equal 'In-Video Programming', result[10].title
assert_equal "The number of videos with in-video programming", result[10].description
assert_equal 6, result[10].valid_count
assert_equal 3, result[10].valid_count
assert_equal 7, result[10].total_count

assert_equal 'Possible End Card Annotations', result[11].title
Expand Down

0 comments on commit 0300f9b

Please sign in to comment.