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

docs: add section on testing style that we promote (#1645) #1649

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

clemens
Copy link
Contributor

@clemens clemens commented Aug 26, 2024

As outlined in my comment in #1645, this adds a section that explains the implementation-based testing style that shoulda-matchers promotes over behavior-/outcome-based style for the sake of providing clarity to newcomers to the gem, especially less experienced engineers.

I've added it to the "Usage" section. It seemed appropriate there because this section also addresses the topic of should vs. is_expected.to which, to me, is a similar stylistic topic where opinions and promoted practices might differ.

I'm absolutely open to feedback and adapting individual phrases as well as adding/removing parts as needed -- just let me know.

Copy link
Member

@matsales28 matsales28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This is looking great overall.

README.md Outdated Show resolved Hide resolved
Co-authored-by: Matheus Sales <matheus_usales@hotmail.com>
@matsales28 matsales28 merged commit e8f81e3 into thoughtbot:main Sep 6, 2024
1 check passed
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