• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Fullscreen / yt / 129
100%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v0.33.4
DEFAULT BRANCH: master
Ran 02 Jun 2014 11:01PM UTC
Jobs 2
Files 115
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
129

push

travis-ci

claudiofullscreen
Ensure channel.earning is 0 when no money was made

Because of another weird behavior of YouTube API, if "earnings" is the
only metric requested for a specific day, and a channel did not make any
money that day, then YouTube does not return anything.

If instead the "estimatedMinutesWatched" is also requested, then the value
for the "earnings" metric is correctly returned as:

- 0 if the channel did not make any money
- nil if the estimated earnings are not available

6 of 6 new or added lines in 1 file covered. (100.0%)

1659 of 2022 relevant lines covered (82.05%)

2.02 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/yt/associations/statuses.rb
1
100.0
lib/yt/errors/no_items.rb
1
100.0
lib/yt/models/authentication.rb
1
100.0
lib/yt/models/resource.rb
2
100.0
lib/yt/associations/snippets.rb
2
100.0
lib/yt/models/status.rb
3
100.0
lib/yt/associations/playlists.rb
3
100.0
lib/yt/models/snippet.rb
4
100.0
lib/yt/collections/ratings.rb
4
100.0
lib/yt/collections/snippets.rb
4
100.0
lib/yt/models/rating.rb
6
100.0
spec/support/global_hooks.rb
7
100.0
lib/yt/actions/delete.rb
7
100.0
lib/yt/actions/update.rb
7
100.0
lib/yt/associations/ratings.rb
8
100.0
lib/yt/actions/delete_all.rb
8
100.0
lib/yt/actions/insert.rb
8
100.0
lib/yt/associations/earnings.rb
11
100.0
lib/yt/collections/earnings.rb
12
100.0
lib/yt/collections/playlists.rb
12
100.0
lib/yt/models/playlist_item.rb
13
100.0
lib/yt/models/request.rb
22
100.0
lib/yt/models/playlist.rb
Jobs
ID Job ID Ran Files Coverage
1 129.1 (1.9.3, YT_TEST_DEVICE_REFRESH_TOKEN=[secure], gemfiles/Gemfile.activesupport-3.x) 02 Jun 2014 11:02PM UTC 0
78.85
Travis Job 129.1
2 129.2 (2.0.0, YT_TEST_DEVICE_REFRESH_TOKEN=[secure], gemfiles/Gemfile.activesupport-4.x) 02 Jun 2014 11:01PM UTC 0
81.59
Travis Job 129.2
Source Files on build 129
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #129
  • 008c5cb1 on github
  • Prev Build on handle-random-400-error-from-youtube (#128)
  • Next Build on handle-random-400-error-from-youtube (#130)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc