diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-21 15:14:29 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-21 15:14:29 -0800 |
commit | 8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab (patch) | |
tree | 1747542bbe74522a53608599e0875bd37fea80b5 /test | |
parent | 1c48bef21533039c81fdcaf868be518d5c16e383 (diff) | |
download | rails-8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab.tar.gz rails-8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab.tar.bz2 rails-8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab.zip |
Lock should be a unary node
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_depth_first.rb | 2 | ||||
-rw-r--r-- | test/visitors/test_mysql.rb | 2 | ||||
-rw-r--r-- | test/visitors/test_postgres.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 6d74926743..06e7bba9fb 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -63,7 +63,7 @@ module Arel end def test_lock - lock = Nodes::Lock.new + lock = Nodes::Lock.new true @visitor.accept lock assert_equal [lock], @collector.calls end diff --git a/test/visitors/test_mysql.rb b/test/visitors/test_mysql.rb index c22cbaff19..ee70d4c174 100644 --- a/test/visitors/test_mysql.rb +++ b/test/visitors/test_mysql.rb @@ -31,7 +31,7 @@ module Arel describe 'locking' do it 'defaults to FOR UPDATE when locking' do - node = Nodes::Lock.new + node = Nodes::Lock.new true @visitor.accept(node).must_be_like "FOR UPDATE" end diff --git a/test/visitors/test_postgres.rb b/test/visitors/test_postgres.rb index 9ed42b1806..169510185e 100644 --- a/test/visitors/test_postgres.rb +++ b/test/visitors/test_postgres.rb @@ -9,7 +9,7 @@ module Arel describe 'locking' do it 'defaults to FOR UPDATE' do - @visitor.accept(Nodes::Lock.new).must_be_like %{ + @visitor.accept(Nodes::Lock.new(true)).must_be_like %{ FOR UPDATE } end |