diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 11:06:09 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 11:06:09 -0800 |
commit | f62a7267c551d216297bec9f0496738b8e27dcae (patch) | |
tree | dbd7ea511e1ee6519c065e01701cc6bacc88b132 /test | |
parent | e02a914fb0b8b7baac1b231badeba49e991a03b9 (diff) | |
download | rails-f62a7267c551d216297bec9f0496738b8e27dcae.tar.gz rails-f62a7267c551d216297bec9f0496738b8e27dcae.tar.bz2 rails-f62a7267c551d216297bec9f0496738b8e27dcae.zip |
adding deprecated support for walking ancestor trees
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_to_sql.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 037fca9931..1c5c8eac0c 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -21,6 +21,11 @@ module Arel end end + it "should visit string subclass" do + @visitor.accept(Class.new(String).new(":'(")) + @visitor.accept(Class.new(Class.new(String)).new(":'(")) + end + it "should visit_Class" do @visitor.accept(DateTime).must_equal "'DateTime'" end |