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

mroderick / codebar-planner
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: fix/time-dependent-flaky-tests
DEFAULT BRANCH: master
Repo Added 11 Jul 2025 08:20PM UTC
Token vPb66DExHmn8kKCIdxCr3cvXvGCjXCICV regen
Build 132 Last
Files 182
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

LAST BUILD ON BRANCH fix/time-dependent-flaky-tests
branch: fix/time-dependent-flaky-tests
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/time-dependent-flaky-tests
  • add-docs
  • add-editor-config
  • add-scout-apm
  • add-sitemap-generator
  • add-tests-for-2515
  • attempt-to-fix-issue-template
  • bundle-ignore-junk
  • docs/improve-workflow-documentation
  • feature/chapters-sidebar-v3
  • feature/chapters-sidebar-viewcomponent
  • feature/events-upcoming-past
  • feature/homepage-events-limit
  • feature/meeting-organisers-tomselect
  • feature/plausible-analytics
  • feature/seeds-performance-data
  • feature/tom-select-meeting-invitations
  • feature/tom-select-member-search
  • feature/tom-select-member-search-clean
  • feature/tom-select-member-search-final
  • fix-broken-chosen
  • fix-duplicate-waiting-list-entries
  • fix-error-656-undefined-method-event-for-nil
  • fix-member-details-validation-order
  • fix-missing-authentication-error-translation
  • fix/cookie-serializer-migration
  • fix/dashboard-eager-loading
  • fix/deduplicate-chapter-members
  • fix/event-description-xss-vulnerability
  • fix/events-controller-fixes
  • fix/events-sponsors-eager-loading
  • fix/find-by-nil-errors
  • fix/flaky-listable-tests
  • fix/homepage-n-plus-one-eager-loading
  • fix/homepage-performance
  • fix/invitation-log-entry-unique-constraint
  • fix/invitation-log-retry-handling
  • fix/invitation-log-retry-v2
  • fix/member-attending-cache
  • fix/pagy-deprecation
  • fix/playwright-version-mismatch
  • fix/render-not-found-json-error
  • fix/subscription-unique-index
  • fix/workshop-invitation-resilience
  • freeze-postgres-version
  • imagemagick-check
  • improve-intro-text
  • improve-language
  • improve-og-tags
  • improve-repository-configs
  • increase-delayed-job-max-runtime
  • issue-2367-workshop-feedback
  • issue-2445
  • link-to-chapters-from-pills
  • lock-gem-platforms
  • make-event-rendering-faster
  • master
  • no-og-tags-on-admin
  • optimise-images
  • params-expect
  • policy-tests
  • pr/fix-find-by-nil-errors
  • remove-2024-impact-report-banner
  • remove-bootsnap
  • remove-go-squared
  • remove-google-analytics
  • remove-meta-partial
  • remove-puma-cluster-mode-config
  • remove-skylight
  • remove-twitter
  • remove-unused-i18n-features
  • remove-unused-new-relic
  • replace-claude-md-with-agents-md
  • speedup-ci-tests
  • stop-pinning-image-processing
  • stop-using-update-attribute
  • update-year-for-impact-report
  • upgrade-ruby
  • use-playwright
  • use-rails-7-1-defaults
  • workshop-invitation-controller

11 Apr 2026 04:19PM UTC coverage: 95.556% (-0.002%) from 95.558%
24286558792

push

github

mroderick
fix(test): freeze time in tests to prevent flaky failures

Remove timecop gem dependency and use Rails' travel_to helper.

Time-based scopes compare against Time.zone.now evaluated at query time,
while test fixtures used relative times evaluated at creation time. This
caused flaky tests when any time passed between fixture creation and query.

Files changed:
- Remove timecop from Gemfile and test.rb config
- Add travel_to blocks to time-dependent tests in shared examples,
  listable_spec, attendance_warning_spec, feature tests, rake tasks,
  and presenter specs

Fixes flaky test failures in CI runs.

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

3483 of 3645 relevant lines covered (95.56%)

46.12 hits per line

Relevant lines Covered
Build:
Build:
3645 RELEVANT LINES 3483 COVERED LINES
46.12 HITS PER LINE
Source Files on fix/time-dependent-flaky-tests
  • Tree
  • List 182
  • Changed 121
  • Source Changed 1
  • Coverage Changed 121
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24286558792 fix/time-dependent-flaky-tests fix(test): freeze time in tests to prevent flaky failures Remove timecop gem dependency and use Rails' travel_to helper. Time-based scopes compare against Time.zone.now evaluated at query time, while test fixtures used relative times evaluated a... push 11 Apr 2026 04:26PM UTC mroderick github
95.56
24286128117 fix/time-dependent-flaky-tests fix(test): freeze time in presenter and rake task tests Tests for presenters and rake tasks use relative times that are compared against Time.zone.now in scopes. Freeze time to ensure consistent time comparisons. push 11 Apr 2026 04:01PM UTC mroderick github
95.56
24286005864 fix/time-dependent-flaky-tests fix(test): freeze time in tests to prevent flaky failures Remove timecop gem and standardize on ActiveSupport time helpers. - Remove timecop from Gemfile and test.rb config - Migrate Timecop.travel to travel_to in listable_spec.rb - Fix shared_e... push 11 Apr 2026 03:54PM UTC mroderick github
95.56
See All Builds (130)

Badge your Repo: codebar-planner

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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