Closed marcpa00 closed 11 years ago
The introduction to Spock has now been moved to chapter 2 and this particular example has been replaced with another.
Oh, and just to clarify: the latest version of chapter 2 isn't yet in the MEAP, sorry :unamused:
The assertion (#5) is false as the sum of 3 and 7 is 10. If this is intentional, there should be a paragraph talking about seeing the test become red when run and how to fix it.
However, I think the first Spock test introduced should pass, unless you want to go into a discussion on the merit of writing tests that fails first, then make them run; but then, the test should fail not because of a error in the test but because of the code under test.