Sha256: bf6529d589ea117b935490c541bc25a5d04a44d770878b3bacf1fa88d1a0c3a3

Contents?: true

Size: 319 Bytes

Versions: 5

Compression:

Stored size: 319 Bytes

Contents

require '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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arel-2.0.6 test/visitors/test_postgres.rb
arel-2.0.5 test/visitors/test_postgres.rb
arel-2.0.4 test/visitors/test_postgres.rb
arel-2.0.3 test/visitors/test_postgres.rb
arel-2.0.2 test/visitors/test_postgres.rb