diff options
Diffstat (limited to 'spec/visitors/postgres_spec.rb')
-rw-r--r-- | spec/visitors/postgres_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/visitors/postgres_spec.rb b/spec/visitors/postgres_spec.rb new file mode 100644 index 0000000000..b5174a4c04 --- /dev/null +++ b/spec/visitors/postgres_spec.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).should be_like %{ + FOR UPDATE + } + end + end + end +end |