"Leverage described class" #5
Replies: 2 comments 1 reply
-
|
Perhaps there is a good rationale for this suggestion, but that rationale doesn't seem clear from the example given. How often do you rename a class? It happens but it's not very common. If you renamed a class, there is no possible way you would fail to do a global search across all of your code, including your specs. It's not as though you would miss the mention of However there can be a cost because the test can become less readable due to an added layer of mental indirection. When you read I would personally treat |
Beta Was this translation helpful? Give feedback.
-
|
I dislike Also: when searching for code ( Reading a lot of code, I typically do not read top-button, but start from somewhere within the file. Then I want to know immediately what code is called in the spec and not need another inference step. And this model-renaming thing, it really didn't happen that often to me. I would use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What are your thoughts on https://evenbetterspecs.github.io/#leverage-described-class?
Beta Was this translation helpful? Give feedback.
All reactions