From 8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 21 Feb 2011 15:14:29 -0800 Subject: Lock should be a unary node --- test/visitors/test_depth_first.rb | 2 +- test/visitors/test_mysql.rb | 2 +- test/visitors/test_postgres.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/visitors') 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 -- cgit v1.2.3