mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-14 03:14:22 +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
|
it 'has many completed todos' do
|
||||||
User.should have_many(:completed_todos).
|
User.should have_many(:completed_todos).
|
||||||
with_order('todos.completed_at DESC').
|
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_include(:project, :context).
|
||||||
with_class_name('Todo')
|
with_class_name('Todo')
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue