diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_factory_methods.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_factory_methods.rb b/test/test_factory_methods.rb index 6506d3c472..50f77c3175 100644 --- a/test/test_factory_methods.rb +++ b/test/test_factory_methods.rb @@ -22,6 +22,13 @@ module Arel assert_instance_of Nodes::On, on assert_equal :one, on.expr end + + def test_lower + lower = @factory.lower :one + assert_instance_of Nodes::NamedFunction, lower + assert_equal 'LOWER', lower.name + assert_equal [:one], lower.expressions + end end end end |