Sha256: 28f7b4b1010cc97919318afd94f2c05e483cc97fa587596b960eb3d14e5a3e99

Contents?: true

Size: 407 Bytes

Versions: 29

Compression:

Stored size: 407 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
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/arel-2.2.1/test/visitors/test_sqlite.rb