[Rspec-devel] Skeleton Generator
dastels at daveastels.com
Mon Aug 14 18:37:10 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
On 14-Aug-06, at 5:56 PM, Judson Lester wrote:
> Swap in this:
> specify "should have 52 cards" do
> with a corresponding generated Deck#size method. Then the result is
> that the code gets generated, and there's a failure, because
> doesn't return 52.
Granted this is all out of context....
but is the size of a deck part of it's behaviour.. or just part of
it's state. Put another way.. does anyone care that they can ask a
deck for its size? Or are they more interested in having hands
> There's less room for human error - because you only typed in the
> name once. (Granted, there's room for automatic error, if you
> a method twice in spec and misspell it the second time...)
true. A good IDE would help mitigate that, though.
In all some interesting thoughts.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
-----END PGP SIGNATURE-----
More information about the Rspec-devel