Thanks for the props. The other operators are still supported as/is and don't cause the warning that == does.
RSpec 2 introduced an eq matcher so you can do this warning free: i.porkchop_sandwiches.count.should eq(1). Then for object identity you can still use be: i.porkchop_sandwiches.first.should be(my_sandwich) This is…
Thanks for the props. The other operators are still supported as/is and don't cause the warning that == does.
RSpec 2 introduced an eq matcher so you can do this warning free: i.porkchop_sandwiches.count.should eq(1). Then for object identity you can still use be: i.porkchop_sandwiches.first.should be(my_sandwich) This is…