Skip to content

Conversation

@uttercm
Copy link

@uttercm uttercm commented Apr 29, 2025

Added a section on the use of Method Stubs vs Expectations that my company tries to follow that I think makes more sense when testing. Added to the Example Group Structure section.

stub example


[source,ruby]
----
# bad - expecting instance double
Copy link
Author

Choose a reason for hiding this comment

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

this could still be good but then the testing actual method would be better and verifying instance double even better

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