Brian,
On Tue, Sep 29, 2009 at 2:48 PM, Brian Cardarella <
bcard...@gmail.com> wrote:
> If you accept having an error while you properly TDD then that is one
> thing. But I believe that the test should fail first (not give an
> error) if the given named scope doesn't exist. Then it should fail if
> the expectation is not met.
I'm not sure what you mean here. The usual flow is: error (no method
defined), error (wrong number of arguments), failure (wrong result),
some progression to green.
I don't see how it's different in this case.
> Not to mention that the matcher and macro both give you a standardized
> formatting to your failures and test names.
That's a valid point and something to strive for, but I don't like the
standard name this gives me "should have named scope" is an
implementation detail. It's like saying "should have class method" or
"should have instance method".
> And I'm certain where the potential for error comes in over the 2nd
> example.
Again, not sure I understand what you mean here.
--
Dan Croak
@Croaky