diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-16 08:15:58 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-16 08:15:58 -0800 |
commit | ac38fcae4997d4cf6480820542ac2a4a1801b014 (patch) | |
tree | 20933c8c2f3aafca0f064ab2dcb2121f715e7fbb /test/visitors | |
parent | f0139a16c263ba62e7e45d462a4fff411ebf2523 (diff) | |
download | rails-ac38fcae4997d4cf6480820542ac2a4a1801b014.tar.gz rails-ac38fcae4997d4cf6480820542ac2a4a1801b014.tar.bz2 rails-ac38fcae4997d4cf6480820542ac2a4a1801b014.zip |
added a visitor for Class objects
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_to_sql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 8723332005..8715531bda 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -21,6 +21,10 @@ module Arel end end + it "should visit_Class" do + @visitor.accept(DateTime).must_equal "'DateTime'" + end + it "should visit_DateTime" do @visitor.accept DateTime.now end |