[rspec-users] should and != operator

Stephen Eley sfeley at gmail.com
Wed Oct 14 12:01:04 EDT 2009

On Wed, Oct 14, 2009 at 4:34 AM, Ashley Moran
<ashley.moran at patchspace.co.uk> wrote:
> On 14 Oct 2009, at 02:25, Stephen Eley wrote:
>> [...]  these quirks are caught when your specs
>> pass and you haven't done anything to make them pass yet.  >8->
> Really?  I just tried `1.should != 2' and got no warnings.

Did your brain try to warn you?  You're part of the system, you know.  >8->

>> (You _do_ always start with failing specs, and then do the work to
>> make them pass, right?)
> Only when I care if the code does something useful =)

If you don't care whether the code is useful, I'm baffled as to why
you might care whether the tests are useful.

Have Fun,
   Steve Eley (sfeley at gmail.com)
   ESCAPE POD - The Science Fiction Podcast Magazine

More information about the rspec-users mailing list