Pat Maddox wrote: > Use should == instead of equal. == is equality, equal is object > identity. You very rarely want to use equal. > > >> "foo".equal? "foo" > => false > >> "foo" == "foo" > => true > > Pat
Thanks. Although, if I recall correctly then I am advised to use the form "x.should be == y" . ;-> -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users