aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_postgres.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_postgres.rb')
-rw-r--r--test/visitors/test_postgres.rb17
1 files changed, 17 insertions, 0 deletions
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