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

ruby-grape / grape / 44892362501
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 21 Nov 2026 10:02AM UTC
Jobs 23
Files 178
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

21 Nov 2026 10:00AM UTC coverage: 100.0%. Remained the same
44892362501

Pull #3087

github

ericproulx
Let a mounted API use the named params of the scope it is mounted in

A `params :name` helper declared in an API reached the routes of an API
mounted in it as a method helper does, but `use :name` there raised
`Params :name not found!`. It had two causes:

* `use` looked the name up as the API class was defined, on its base
  instance, which is never mounted.
* `mount_instance` replays the API's setup before `mount` hands the
  instance the mounting scope's settings, so the mounted copy could not
  see the name either, even inside a `mounted` block.

`mount` now lends the mounting scope's named params to the instance it
replays, placed between the instance and what it inherits from its
superclass, minus the names the superclass defines, so those resolve as
they did. Only the named params are lent: inheriting the whole scope
before the replay made a `route_param :id, type: Integer` around the
mount narrow the mounted routes' patterns, turning a 400 into a 404.

A name `use` cannot find is recorded on the route and raised by
`Endpoint#compile!`, so an API that is only ever mounted never raises
for it, while one served on its own raises when it compiles rather than
when it is defined.

Fixes #2113
Fixes #1761

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3087: Let a mounted API use the named params of the scope it is mounted in

1633 of 1633 branches covered (100.0%)

Branch coverage included in aggregate %.

21 of 21 new or added lines in 5 files covered. (100.0%)

4729 of 4729 relevant lines covered (100.0%)

21596.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_8_1.gemfile - 44892362501.1 21 Nov 2026 10:02AM UTC 178
98.88
GitHub Action Run
2 run-4.0-gemfiles/rack_3_1.gemfile - 44892362501.2 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
3 run-3.3-Gemfile - 44892362501.3 21 Nov 2026 10:02AM UTC 177
98.9
GitHub Action Run
4 run-4.0-gemfiles/multi_xml.gemfile - 44892362501.4 21 Nov 2026 10:02AM UTC 176
45.53
GitHub Action Run
5 run-4.0-Gemfile - 44892362501.5 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
6 run-3.3-gemfiles/rack_3_1.gemfile - 44892362501.6 21 Nov 2026 10:02AM UTC 177
98.9
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 44892362501.7 21 Nov 2026 10:02AM UTC 176
56.59
GitHub Action Run
8 run-3.3-gemfiles/rack_3_2.gemfile - 44892362501.8 21 Nov 2026 10:02AM UTC 177
98.9
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 44892362501.9 21 Nov 2026 10:02AM UTC 178
98.88
GitHub Action Run
10 run-3.4-Gemfile - 44892362501.10 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
11 run-4.0-gemfiles/grape_entity.gemfile - 44892362501.11 21 Nov 2026 10:02AM UTC 176
48.56
GitHub Action Run
12 run-4.0-gemfiles/rails_8_0.gemfile - 44892362501.12 21 Nov 2026 10:02AM UTC 178
98.88
GitHub Action Run
13 run-3.3-gemfiles/rails_8_0.gemfile - 44892362501.13 21 Nov 2026 10:02AM UTC 178
98.9
GitHub Action Run
14 run-4.0-gemfiles/grape_swagger.gemfile - 44892362501.14 21 Nov 2026 10:02AM UTC 176
52.63
GitHub Action Run
15 run-4.0-gemfiles/rack_3_2.gemfile - 44892362501.15 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
16 run-3.3-gemfiles/rails_8_1.gemfile - 44892362501.16 21 Nov 2026 10:02AM UTC 178
98.9
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 44892362501.17 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
18 run-3.4-gemfiles/rails_8_0.gemfile - 44892362501.18 21 Nov 2026 10:02AM UTC 178
98.88
GitHub Action Run
19 run-3.4-gemfiles/rack_3_2.gemfile - 44892362501.19 21 Nov 2026 10:02AM UTC 177
98.88
GitHub Action Run
20 run-4.0-gemfiles/multi_xml_0_8.gemfile - 44892362501.20 21 Nov 2026 10:02AM UTC 176
45.56
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 44892362501.21 21 Nov 2026 10:02AM UTC 176
45.83
GitHub Action Run
22 run-4.0-gemfiles/hashie.gemfile - 44892362501.22 21 Nov 2026 10:02AM UTC 176
59.0
GitHub Action Run
23 run-4.0-gemfiles/multi_json_1_20.gemfile - 44892362501.23 21 Nov 2026 10:02AM UTC 176
45.87
GitHub Action Run
Source Files on build 44892362501
  • Tree
  • List 178
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44892362501
  • Pull Request #3087
  • PR Base - master (#44892107870)
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