2009/10/29 George Herolyants
<george.herolyants@gmail.com>
> Using symbols (i.e. "almost" constants) instead of explicitly telling what
> is happenning (sending a message)� is more clean?! :) Ok then... (Not sure
> what you mean by "declarative" here)
The message "given:" tells that to you.
For me it's not clear at all. But this is much more obvious:
�� � �� stack := self resultOf: [self shouldBeEmpty].
And by "declarative" I meant
the way you specify dependencies between your tests. If it was done
your way, test would be performed twice.
Why?
�
If you use symbol, you don't
have to do it (haven't seen the library yet, just guessing :).
Don't have to do what?�