From e1ebe6e949ef3674434bfa90d271a7b74c2ac153 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Mon, 18 Oct 2010 15:41:21 -0700 Subject: Fisting arel specs -- still needs tree_manager and cleanup --- test/visitors/test_postgres.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/visitors/test_postgres.rb (limited to 'test/visitors/test_postgres.rb') diff --git a/test/visitors/test_postgres.rb b/test/visitors/test_postgres.rb new file mode 100644 index 0000000000..70b935c185 --- /dev/null +++ b/test/visitors/test_postgres.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +module Arel + module Visitors + describe 'the postgres visitor' do + before do + @visitor = PostgreSQL.new Table.engine + end + + it 'should produce a lock value' do + @visitor.accept(Nodes::Lock.new).must_be_like %{ + FOR UPDATE + } + end + end + end +end -- cgit v1.2.3