Sha256: 2b51e0ca9601c4b254009e79d683e7ea218b6ee1570e432907595dc1f35bf911

Contents?: true

Size: 391 Bytes

Versions: 18

Compression:

Stored size: 391 Bytes

Contents

require 'helper'

module Arel
  module Visitors
    describe 'the sqlite visitor' do
      before do
        @visitor = SQLite.new Table.engine
      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

18 entries across 18 versions & 2 rubygems

Version Path
arel-2.1.4 test/visitors/test_sqlite.rb
arel-2.1.3 test/visitors/test_sqlite.rb
arel-2.1.2 test/visitors/test_sqlite.rb
arel-2.0.10 test/visitors/test_sqlite.rb
arel-2.1.1 test/visitors/test_sqlite.rb
square-arel-2.0.9.20110222133018 test/visitors/test_sqlite.rb
arel-2.1.0 test/visitors/test_sqlite.rb
arel-2.0.9 test/visitors/test_sqlite.rb
arel-2.0.9.rc1 test/visitors/test_sqlite.rb
arel-2.0.8 test/visitors/test_sqlite.rb
arel-2.0.8.beta.20110131120940 test/visitors/test_sqlite.rb
arel-2.0.7 test/visitors/test_sqlite.rb
arel-2.0.7.beta.20110110114925 test/visitors/test_sqlite.rb
arel-2.0.6 test/visitors/test_sqlite.rb
arel-2.0.5 test/visitors/test_sqlite.rb
arel-2.0.4 test/visitors/test_sqlite.rb
arel-2.0.3 test/visitors/test_sqlite.rb
arel-2.0.2 test/visitors/test_sqlite.rb