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

ruby-grape / grape / 32704482288
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/route-success-failure-readers
DEFAULT BRANCH: master
Ran 24 Aug 2026 08:05AM UTC
Jobs 32
Files 168
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

24 Aug 2026 08:04AM UTC coverage: 96.988% (+0.002%) from 96.986%
32704482288

Pull #2859

github

ericproulx
Answer Route#success and #failure whichever way desc spelled them

`success` and `failure` are grape's documented names for `entity` and
`http_codes` (README, and `alias success entity` in ApiDescription), but
a route could only answer one spelling: the one the description happened
to use.

A `desc` block records `success Entity` under `:entity`, so `route.success`
found no `:success` key; a keyword `desc 'x', success: Entity` keeps the
key it was written with, so `route.entity` found no `:entity` key. Both
calls still returned nil rather than raising, because BaseRoute delegates
missing methods to its options bag and ActiveSupport::OrderedOptions
answers an unknown reader with nil.

Define the two readers on BaseRoute so each resolves the description's
value from either key. grape-swagger already compensates for this with
`route.entity || route.success`, but its `file_response?(route.success)`
check saw nothing for a description written as a block.

`entity` and `http_codes` still read only their own key, so the error
formatter's presenter lookup keeps missing a `failure:` keyword option;
that one is left for a follow-up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2859: Answer Route#success and #failure whichever way desc spelled them

1239 of 1330 branches covered (93.16%)

Branch coverage included in aggregate %.

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

3881 of 3949 relevant lines covered (98.28%)

27088.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32704482288.1 24 Aug 2026 08:05AM UTC 167
46.86
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 32704482288.2 24 Aug 2026 08:05AM UTC 167
55.15
GitHub Action Run
3 run-3.3-gemfiles/rack_3_2.gemfile - 32704482288.3 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 32704482288.4 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
5 run-3.3-gemfiles/rack_2_2.gemfile - 32704482288.5 24 Aug 2026 08:05AM UTC 167
95.69
GitHub Action Run
6 run-3.4-gemfiles/rack_3_2.gemfile - 32704482288.6 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
7 run-3.4-gemfiles/rack_3_0.gemfile - 32704482288.7 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
8 run-3.4-Gemfile - 32704482288.8 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 32704482288.9 24 Aug 2026 08:05AM UTC 167
50.03
GitHub Action Run
10 run-4.0-gemfiles/rails_7_2.gemfile - 32704482288.10 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
11 run-3.4-gemfiles/rails_7_2.gemfile - 32704482288.11 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
12 run-3.3-gemfiles/rails_7_2.gemfile - 32704482288.12 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
13 run-3.3-gemfiles/rails_8_1.gemfile - 32704482288.13 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
14 run-3.4-gemfiles/rack_3_1.gemfile - 32704482288.14 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
15 run-3.4-gemfiles/rails_8_1.gemfile - 32704482288.15 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
16 run-4.0-gemfiles/rack_3_0.gemfile - 32704482288.16 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
17 run-4.0-gemfiles/rails_8_0.gemfile - 32704482288.17 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
18 run-4.0-gemfiles/multi_json_1_20.gemfile - 32704482288.18 24 Aug 2026 08:05AM UTC 167
47.43
GitHub Action Run
19 run-4.0-gemfiles/rack_2_2.gemfile - 32704482288.19 24 Aug 2026 08:05AM UTC 167
95.7
GitHub Action Run
20 run-3.3-gemfiles/rack_3_1.gemfile - 32704482288.20 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 32704482288.21 24 Aug 2026 08:05AM UTC 167
47.39
GitHub Action Run
22 run-3.4-gemfiles/rack_2_2.gemfile - 32704482288.22 24 Aug 2026 08:05AM UTC 167
95.7
GitHub Action Run
23 run-3.4-gemfiles/rails_8_0.gemfile - 32704482288.23 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
24 run-4.0-gemfiles/multi_xml.gemfile - 32704482288.24 24 Aug 2026 08:05AM UTC 167
46.82
GitHub Action Run
25 run-3.3-Gemfile - 32704482288.25 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
26 run-4.0-gemfiles/dry_validation.gemfile - 32704482288.26 24 Aug 2026 08:05AM UTC 167
57.86
GitHub Action Run
27 run-4.0-Gemfile - 32704482288.27 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
28 run-4.0-gemfiles/rack_3_1.gemfile - 32704482288.28 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
29 run-4.0-gemfiles/rails_8_1.gemfile - 32704482288.29 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 32704482288.30 24 Aug 2026 08:05AM UTC 168
95.74
GitHub Action Run
31 run-3.3-gemfiles/rack_3_0.gemfile - 32704482288.31 24 Aug 2026 08:05AM UTC 167
95.73
GitHub Action Run
32 run-4.0-gemfiles/hashie.gemfile - 32704482288.32 24 Aug 2026 08:05AM UTC 167
61.84
GitHub Action Run
Source Files on build 32704482288
  • Tree
  • List 168
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32704482288
  • Pull Request #2859
  • PR Base - master (#32639177546)
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