Sha256: a0d992e9bbecd76799736272ac71a39e70c19fcb213b4a0abd51d6f53d579603

Contents?: true

Size: 554 Bytes

Versions: 95

Compression:

Stored size: 554 Bytes

Contents

require 'helper'

module Arel
  module Visitors
    describe 'the sqlite visitor' do
      before do
        @visitor = SQLite.new Table.engine.connection_pool
      end

      it 'defaults limit to -1' do
        stmt = Nodes::SelectStatement.new
        stmt.offset = Nodes::Offset.new(1)
        sql = @visitor.accept(stmt)
        sql.must_be_like "SELECT LIMIT -1 OFFSET 1"
      end

      it 'does not support locking' do
        node = Nodes::Lock.new(Arel.sql('FOR UPDATE'))
        @visitor.accept(node).must_be_nil
      end
    end
  end
end

Version data entries

95 entries across 77 versions & 14 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/arel-3.0.3/test/visitors/test_sqlite.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/test/visitors/test_sqlite.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/test/visitors/test_sqlite.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/test/visitors/test_sqlite.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/visitors/test_sqlite.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/arel-3.0.2/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/arel-3.0.3/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/arel-3.0.3/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/arel-3.0.3/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/arel-3.0.3/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/arel-3.0.3/test/visitors/test_sqlite.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/arel-3.0.3/test/visitors/test_sqlite.rb
arel-5.0.1.20140414130214 test/visitors/test_sqlite.rb
arel-4.0.2 test/visitors/test_sqlite.rb
arel-5.0.0 test/visitors/test_sqlite.rb
arel-3.0.3 test/visitors/test_sqlite.rb
arel-4.0.1 test/visitors/test_sqlite.rb
challah-1.0.0 vendor/bundle/gems/arel-4.0.0/test/visitors/test_sqlite.rb
swipe-rails-0.0.5 vendor/bundle/gems/arel-3.0.2/test/visitors/test_sqlite.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/test/visitors/test_sqlite.rb