diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-13 18:55:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-13 18:55:15 -0700 |
commit | 74a27a0d83ecd7ed4975851ea92ee517a1581faf (patch) | |
tree | b120548f12566bd6a9c32a142c6191ae17eadf38 /spec/arel/visitors | |
parent | 9fc70e22f9bf7df8485b90b3d7e4a5c58cb0ebbb (diff) | |
download | rails-74a27a0d83ecd7ed4975851ea92ee517a1581faf.tar.gz rails-74a27a0d83ecd7ed4975851ea92ee517a1581faf.tar.bz2 rails-74a27a0d83ecd7ed4975851ea92ee517a1581faf.zip |
inserts have the correct syntax
Diffstat (limited to 'spec/arel/visitors')
-rw-r--r-- | spec/arel/visitors/to_sql_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/arel/visitors/to_sql_spec.rb b/spec/arel/visitors/to_sql_spec.rb new file mode 100644 index 0000000000..7600d53862 --- /dev/null +++ b/spec/arel/visitors/to_sql_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +module Arel + module Visitors + describe 'the to_sql visitor' do + before do + @visitor = ToSql.new Table.engine + @attr = Table.new(:users)[:id] + end + + it "should visit visit_Arel_Attributes_Time" do + attr = Attributes::Time.new(@attr.relation, @attr.name, @attr.column) + @visitor.accept attr + end + end + end +end |