aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/visitors
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-08 16:29:08 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-08 16:29:08 -0700
commit539572f023da47c47877fe31b58303cc4b7015b5 (patch)
tree0cf5ec69d2ec2ac7c7cde19c4c4ffa44b4fa3021 /spec/arel/visitors
parent24000a51a7e61c065817e3910bd579e8bdf6f82f (diff)
downloadrails-539572f023da47c47877fe31b58303cc4b7015b5.tar.gz
rails-539572f023da47c47877fe31b58303cc4b7015b5.tar.bz2
rails-539572f023da47c47877fe31b58303cc4b7015b5.zip
we can visit floats!
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 a4722f73d4..39d7a7249c 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_Float" do
+ @visitor.accept 2.14
+ end
+
it "should visit_BigDecimal" do
@visitor.accept BigDecimal.new('2.14')
end