Skip to content

Commit

Permalink
Fix broken order_by test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Aug 31, 2011
1 parent 0e7a0c1 commit 7c2ac6c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/filters.coffee
Expand Up @@ -504,12 +504,13 @@ module.exports = exports =
, parent.complex_set.create({name:child_name_1})].collect assert.async (err, data)->
assert.fail err.filter((i)->i isnt null).length
assert.ok data.length
Complex.objects.all().order_by('name') assert.async (err, data)->
assert.fail err
assert.ok data
assert.equal data.length, 2
assert.equal data[0].name, child_name_1
assert.equal data[1].name, child_name_2
Complex.objects.all().order_by('name') assert.async (err, data)->
assert.fail err
assert.ok data

assert.equal data.length, 2
assert.equal data[0].name, child_name_1
assert.equal data[1].name, child_name_2



Expand Down

0 comments on commit 7c2ac6c

Please sign in to comment.