search for: deprecated_messag

Displaying 1 result from an estimated 1 matches for "deprecated_messag".

Did you mean: deprecated_message
2007 Jun 23
4
inverse examples? (should fail)
...nge. Imagine changing the "it" method to perhaps "not" or "old" or "removed"... The behaviour would be to raise a spec error if the example DOES NOT fail. So if it "should do something that''s been deprecated" do my_object.should_receive(:deprecated_message) action end passes, than old "should do something that''s been deprecated" do my_object.should_receive(:deprecated_message) action end ought to fail. It seems like this might be a good first line of defense when starting a big refactor. I''m not sure about the...