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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

johnpitchko
Copy link

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
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>
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