diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_to_sql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index d7cf71961a..a6042ef9c3 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -45,6 +45,10 @@ module Arel @visitor.accept Date.today end + it "should visit_NilClass" do + @visitor.accept(nil).must_be_like "NULL" + end + it "should visit_Arel_Nodes_And" do node = Nodes::And.new @attr.eq(10), @attr.eq(11) @visitor.accept(node).must_be_like %{ |