Skip to content

Override default_url_options to set correct host, port in JS specs#6295

Merged
aduth merged 3 commits intomainfrom
aduth-feature-spec-domain
May 3, 2022
Merged

Override default_url_options to set correct host, port in JS specs#6295
aduth merged 3 commits intomainfrom
aduth-feature-spec-domain

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 3, 2022

Extracted from #6229

Why: So that URL helpers use the correct, expected host name for the running server, rather than "example.com".

Reference: rspec/rspec-rails#1275

I had originally planned to leave this in #6229, but coincidentally, @SammySteiner had run into the same issue for specs for #6278.

aduth added 3 commits May 3, 2022 15:00
Since it's used for generating URLs
changelog: Internal, Automated Testing, Fix URL helpers for feature specs
@aduth aduth requested a review from SammySteiner May 3, 2022 19:03
@aduth aduth merged commit e5c5671 into main May 3, 2022
@aduth aduth deleted the aduth-feature-spec-domain branch May 3, 2022 19:17
peggles2 pushed a commit that referenced this pull request May 5, 2022
…6295)

* Stub real IdentityConfig.store.domain_name in specs

Since it's used for generating URLs

* Override default_url_options to set correct host, port in JS specs

* Add changelog

changelog: Internal, Automated Testing, Fix URL helpers for feature specs
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.

2 participants