diff options
Diffstat (limited to 'test/test_factory_methods.rb')
-rw-r--r-- | test/test_factory_methods.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_factory_methods.rb b/test/test_factory_methods.rb index 50f77c3175..21671cd239 100644 --- a/test/test_factory_methods.rb +++ b/test/test_factory_methods.rb @@ -23,6 +23,16 @@ module Arel assert_equal :one, on.expr end + def test_create_true + true_node = @factory.create_true + assert_instance_of Nodes::True, true_node + end + + def test_create_false + false_node = @factory.create_false + assert_instance_of Nodes::False, false_node + end + def test_lower lower = @factory.lower :one assert_instance_of Nodes::NamedFunction, lower |