From 74a27a0d83ecd7ed4975851ea92ee517a1581faf Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 13 Aug 2010 18:55:15 -0700 Subject: inserts have the correct syntax --- spec/arel/visitors/to_sql_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spec/arel/visitors/to_sql_spec.rb (limited to 'spec/arel/visitors') 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 -- cgit v1.2.3