mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
fix failing spec
This commit is contained in:
parent
74c3b94b76
commit
985aca1cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ describe User do
|
|||
it 'has many completed todos' do
|
||||
User.should have_many(:completed_todos).
|
||||
with_order('todos.completed_at DESC').
|
||||
with_conditions('todos.state = ? and todos.completed_at is not null', 'completed').
|
||||
with_conditions('todos.state = ? AND NOT(todos.completed_at IS NULL)', 'completed').
|
||||
with_include(:project, :context).
|
||||
with_class_name('Todo')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue