diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:45:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:45:38 -0700 |
commit | 368b1c6c42545726da25debfc9a2a5e6e4aaaa8c (patch) | |
tree | e62cee496b540ef5b0bd0d9e14b8b3d7dd1c48e1 /spec/arel/visitors | |
parent | 7b8944cb7662509d7ba6869ff571518ac7f848ea (diff) | |
download | rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.tar.gz rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.tar.bz2 rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.zip |
we can visit big decimal
Diffstat (limited to 'spec/arel/visitors')
-rw-r--r-- | spec/arel/visitors/to_sql_spec.rb | 4 |
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 80f1e59664..a4722f73d4 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_BigDecimal" do + @visitor.accept BigDecimal.new('2.14') + end + it "should visit_Date" do @visitor.accept Date.today end |