From 6c875af26fc91af120d270b25a35ebc0eee311ff Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 24 Aug 2010 18:42:47 -0700 Subject: we can visit the date! --- spec/arel/visitors/to_sql_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/arel') diff --git a/spec/arel/visitors/to_sql_spec.rb b/spec/arel/visitors/to_sql_spec.rb index 9807c89b3a..80f1e59664 100644 --- a/spec/arel/visitors/to_sql_spec.rb +++ b/spec/arel/visitors/to_sql_spec.rb @@ -8,6 +8,10 @@ module Arel @attr = Table.new(:users)[:id] end + it "should visit_Date" do + @visitor.accept Date.today + end + it "should visit_Arel_Nodes_And" do node = Nodes::And.new @attr.eq(10), @attr.eq(11) @visitor.accept(node).should be_like %{ -- cgit v1.2.3