[rspec-users] should and != operator

Ashley Moran ashley.moran at patchspace.co.uk
Mon Oct 12 17:03:06 EDT 2009


On 12 Oct 2009, at 19:33, Willy Mene wrote:

> it "should fail but passes" do
>  [].should != []
>  'some string'.should != 'some string'
> end


This is a common mistake, and one I made for a long while even after  
being familiar with RSpec.  I wonder if there is justification for an  
AST pass over spec files to catch this (among possibly other issues)?

Just one of my usual idle thoughts...

Ashley

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/









More information about the rspec-users mailing list