From a25638832361d7000c2c3b92ab3994e754ff50a9 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Tue, 8 Dec 2009 13:36:57 -0500 Subject: [PATCH] Need to stub out destroyed? method in Rails 2.3.5 --- spec/models/todo_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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