Closed jimweirich closed 11 years ago
I couldn't change the actual Failure/Error line in the error message, that is formatted by RSpec and not generally under my control. However, if the error is either an And or an Invariant clause, I did add the actual source line of the failing clause to the error message so that the expression breakdown can be seen in context.
For example, in the following error message:
Line 11 is the invariant: Invariant { game.position(players_choice) == 'X' } that is failing. And you can see that RSpec/Given is correctly breaking down the invariant expression. However, the Failure/Error: line shows the triggering Then clause, and not the invariant clause.
This should be changed (if possible).