diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:04:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:04:08 -0700 |
commit | 93036b168b2877f2fe314b7fa0e8701878e32602 (patch) | |
tree | 844da68bfa471e64559cc98d12be2863c11cfa14 /test | |
parent | a6a7c75ff486657909e20e2f48764136caa5e87e (diff) | |
download | rails-93036b168b2877f2fe314b7fa0e8701878e32602.tar.gz rails-93036b168b2877f2fe314b7fa0e8701878e32602.tar.bz2 rails-93036b168b2877f2fe314b7fa0e8701878e32602.zip |
fix sqlite visitor
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_sqlite.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_sqlite.rb b/test/visitors/test_sqlite.rb index c06f554ea4..8fb8e76095 100644 --- a/test/visitors/test_sqlite.rb +++ b/test/visitors/test_sqlite.rb @@ -10,13 +10,13 @@ module Arel it 'defaults limit to -1' do stmt = Nodes::SelectStatement.new stmt.offset = Nodes::Offset.new(1) - sql = @visitor.accept(stmt) + 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')) - @visitor.accept(node).must_be_nil + assert_equal '', @visitor.accept(node, Collectors::SQLString.new).value end end end |