Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to set a default driver for system specs #2807

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

johnpitchko
Copy link
Contributor

Current docs explain how to specify the system spec driver for each spec/suite using driven_by, but I felt it lacked explanation on how to set a default driver for all system specs (especially since Capybara.default_driver = ... will not do so).

First PR here so please share if I am missing a step in your approval procedure.

@JonRowe
Copy link
Member

JonRowe commented Oct 4, 2024

Thanks for taking the time to improve this! I've suggested a wording change here because what your doing is still manually setting the driver in every test, just with a hook, as a bonus it cleans up the whitespace that is failing CI

johnpitchko and others added 3 commits October 4, 2024 08:41
@johnpitchko
Copy link
Contributor Author

Thank you @JonRowe - I added a little more to the code example so its clear to add the snippet within the RSpec.configure block.

Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
@JonRowe JonRowe merged commit cf0078d into rspec:main Oct 9, 2024
16 of 17 checks passed
@JonRowe
Copy link
Member

JonRowe commented Oct 9, 2024

Thanks!

@johnpitchko johnpitchko deleted the specify-default-system-spec-driver branch October 9, 2024 18:58
JonRowe added a commit that referenced this pull request Oct 9, 2024
…-driver

Explain how to set a default driver for system specs
@JonRowe
Copy link
Member

JonRowe commented Oct 9, 2024

These have been published, thanks again.

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.

3 participants