diff options
author | Ernie Miller <ernie@metautonomo.us> | 2011-06-14 17:43:22 -0400 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2011-06-15 09:18:26 -0400 |
commit | ba3578a22f824da3478b6dceb100deb9f41a56e9 (patch) | |
tree | 8caaa5ad9018fe61c838907cd0854a68a55f91cd /test/nodes/test_infix_operation.rb | |
parent | 593002080cbcbb6e14acf3bc909aab819811f215 (diff) | |
download | rails-ba3578a22f824da3478b6dceb100deb9f41a56e9.tar.gz rails-ba3578a22f824da3478b6dceb100deb9f41a56e9.tar.bz2 rails-ba3578a22f824da3478b6dceb100deb9f41a56e9.zip |
Break Ordering into Ascending/Descending nodes, allow reversal
Diffstat (limited to 'test/nodes/test_infix_operation.rb')
-rw-r--r-- | test/nodes/test_infix_operation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nodes/test_infix_operation.rb b/test/nodes/test_infix_operation.rb index db3216eeee..3d2eb0d9c6 100644 --- a/test/nodes/test_infix_operation.rb +++ b/test/nodes/test_infix_operation.rb @@ -21,9 +21,9 @@ module Arel def test_opertaion_ordering operation = InfixOperation.new :+, 1, 2 ordering = operation.desc - assert_kind_of Ordering, ordering + assert_kind_of Descending, ordering assert_equal operation, ordering.expr - assert_equal :desc, ordering.direction + assert ordering.descending? end end end |