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

dblock / distance_of_time_in_words / 34405895425
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: restore-same-clock-coverage
DEFAULT BRANCH: master
Ran 09 Sep 2026 09:15PM UTC
Jobs 8
Files 5
Run time 1min
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

09 Sep 2026 09:15PM UTC coverage: 100.0%. Remained the same
34405895425

push

github

dblock
Restore full test coverage for same_clock?'s TimeZone-object branch

#165 moved the offset_delta/same_clock? call out of TimeHash#initialize
(where it ran unconditionally for every from/to based call) into
build_years_months_weeks_days (where it only runs for distances that
get split into calendar fields, years/months/weeks/days). The only
existing spec exercising same_clock?'s "zone is a TimeZone object, not
a String" comparison (#162) uses a 1 hour distance, too small to reach
build_years_months_weeks_days at all, so that branch silently stopped
being covered by any spec (100% -> 99.65% overall).

Adds a second #162-shaped example, spanning over a year so it's split
into calendar fields, confirming Tokyo/LA (unrelated zones, not the
same clock) are still correctly treated as different clocks at that
distance too.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

283 of 283 relevant lines covered (100.0%)

630.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.4-gemfiles/rails_8.0.gemfile - 34405895425.1 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
2 ruby-3.4-gemfiles/rails_8.1_i18n.gemfile - 34405895425.2 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
3 ruby-3.4-gemfiles/rails_6.0.gemfile - 34405895425.3 09 Sep 2026 09:15PM UTC 5
99.29
GitHub Action Run
4 ruby-3.4-gemfiles/rails_8.1.gemfile - 34405895425.4 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
5 ruby-3.4- - 34405895425.5 09 Sep 2026 09:16PM UTC 4
99.61
GitHub Action Run
6 ruby-3.4-gemfiles/rails_7.1.gemfile - 34405895425.6 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
7 ruby-3.4-gemfiles/rails_7.2.gemfile - 34405895425.7 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
8 ruby-3.4-gemfiles/rails_7.0.gemfile - 34405895425.8 09 Sep 2026 09:16PM UTC 5
99.29
GitHub Action Run
Source Files on build 34405895425
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34405895425
  • ddd91953 on github
  • Prev Build on restore-same-clock-coverage (#34405822823)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc