Need to stub out destroyed? method in Rails 2.3.5

This commit is contained in:
Eric Allen 2009-12-08 13:36:57 -05:00
parent 6d3770c5fb
commit a256388323

View file

@ -4,7 +4,7 @@ describe Todo do
def valid_attributes(attributes={})
{
:description => "don't forget the milk",
:context => mock_model(Context, :name => 'errands')
:context => mock_model(Context, :name => 'errands', :destroyed? => false)
}.merge(attributes)
end