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

Method invocation not tested comprehensively #2

Open
jerryjohnjacob opened this issue Jul 19, 2016 · 0 comments
Open

Method invocation not tested comprehensively #2

jerryjohnjacob opened this issue Jul 19, 2016 · 0 comments

Comments

@jerryjohnjacob
Copy link

Let's take a look at this spec. It tests a method whose sole responsibility is to invoke another method. But the test does not check that part of it. I can change the method to return 1 at the end no matter what and the tests would still pass. A simple fix here can take care of that. There are a couple of other places where this has happened. I think this example should help you figure the rest out.

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

No branches or pull requests

1 participant