Skip to content

Load mounted routes before integration tests - #5684

Open
ydah wants to merge 1 commit into
rmosolgo:masterfrom
ydah:fix-load-mounted-routes-before-integration-tests
Open

Load mounted routes before integration tests#5684
ydah wants to merge 1 commit into
rmosolgo:masterfrom
ydah:fix-load-mounted-routes-before-integration-tests

Conversation

@ydah

@ydah ydah commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Load the dummy application's routes before rails/test_help includes the mounted route helpers.

Background

The Rails master build fails the dashboard integration tests with:

NameError: undefined local variable or method 'graphql_dashboard'

This also reproduces on the current graphql-ruby master branch, independently of #5683.

With Rails master, the application routes may not be loaded yet when ActionDispatch::IntegrationTest includes Rails.application.routes.mounted_helpers. As a result, the graphql_dashboard mounted helper is unavailable in the integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant