diff options
author | Ernie Miller <ernie@metautonomo.us> | 2010-11-03 20:32:23 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-04 01:01:51 +0800 |
commit | afb6f9c5c1de606c10eca6967010eaa4bfde263b (patch) | |
tree | ba975c3c46f106bd03d5624776b4e7a05ee1a004 /test | |
parent | 01e7ceef453e3dc976dc0d12002bb6d4a66f1252 (diff) | |
download | rails-afb6f9c5c1de606c10eca6967010eaa4bfde263b.tar.gz rails-afb6f9c5c1de606c10eca6967010eaa4bfde263b.tar.bz2 rails-afb6f9c5c1de606c10eca6967010eaa4bfde263b.zip |
Add ToSql NilClass visitor
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 %{ |