diff --git a/spec/models/todo_spec.rb b/spec/models/todo_spec.rb index 44c2e008..3f9a8278 100644 --- a/spec/models/todo_spec.rb +++ b/spec/models/todo_spec.rb @@ -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