Sha256: 783bf51feedbf1979f1dcd121d2007a7b539c9910510df049050de8498aa9de7
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 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, Collectors::SQLString.new).value sql.must_be_like "SELECT LIMIT -1 OFFSET 1" end it 'does not support locking' do node = Nodes::Lock.new(Arel.sql('FOR UPDATE')) assert_equal '', @visitor.accept(node, Collectors::SQLString.new).value end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arel-6.0.0.beta2 | test/visitors/test_sqlite.rb |
arel-6.0.0.beta1 | test/visitors/test_sqlite.rb |