aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/visitors
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-10 09:51:03 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-10 09:51:03 -0700
commit5eaf76df2d442840926eb82d1d2265c2db2aef3f (patch)
tree2663500e332011e98a9262e3c652b0338bc0983d /spec/arel/visitors
parentac2bdd1dd31c8b89578ae7f490a898838b9ef6e0 (diff)
downloadrails-5eaf76df2d442840926eb82d1d2265c2db2aef3f.tar.gz
rails-5eaf76df2d442840926eb82d1d2265c2db2aef3f.tar.bz2
rails-5eaf76df2d442840926eb82d1d2265c2db2aef3f.zip
we can visit DateTime
Diffstat (limited to 'spec/arel/visitors')
-rw-r--r--spec/arel/visitors/to_sql_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/arel/visitors/to_sql_spec.rb b/spec/arel/visitors/to_sql_spec.rb
index 39d7a7249c..ed8487c6eb 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_DateTime" do
+ @visitor.accept DateTime.now
+ end
+
it "should visit_Float" do
@visitor.accept 2.14
end