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

ruby-grape / grape / 30238951520 / 15
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 27 Jul 2026 05:13AM UTC
Files 167
Run time 6s
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

27 Jul 2026 05:09AM UTC coverage: 50.776% (+0.009%) from 50.767%
30238951520.15

push

github

web-flow
Stop entity autodetection from picking up a top-level ::Entity constant (#2825)

entity_class_for_obj used klass.const_defined?(:Entity), which walks the
ancestor chain up to Object — where top-level constants live. Any app
defining a class named Entity had it silently used as the presenter for
every presented object without its own nested Entity (also reachable for
empty collections, whose lookup class resolves to NilClass).

Walk the ancestors explicitly with const_defined?(:Entity, false),
skipping Object, so only a genuine Klass::Entity (on the class or a real
ancestor) is auto-detected. Same family as the ::Options fix in #2773.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

224 of 1272 branches covered (17.61%)

Branch coverage included in aggregate %.

2392 of 3880 relevant lines covered (61.65%)

7.97 hits per line

Source Files on job run-4.0-gemfiles/grape_entity.gemfile - 30238951520.15
  • Tree
  • List 167
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30238951520
  • e603ebea on github
  • Prev Job for on master (#30226977190.5)
  • Next Job for on master (#30239752991.4)
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