mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 05:48:50 +01:00
Need to stub out destroyed? method in Rails 2.3.5
This commit is contained in:
parent
6d3770c5fb
commit
a256388323
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue