From bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Mon, 24 Jul 2017 09:08:24 -0400 Subject: Fix test failures --- test/visitors/test_oracle.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/visitors/test_oracle.rb') diff --git a/test/visitors/test_oracle.rb b/test/visitors/test_oracle.rb index cdadec8b15..603d0f1184 100644 --- a/test/visitors/test_oracle.rb +++ b/test/visitors/test_oracle.rb @@ -127,8 +127,8 @@ module Arel it 'creates a subquery when there is limit and offset with BindParams' do stmt = Nodes::SelectStatement.new - stmt.limit = Nodes::Limit.new(Nodes::BindParam.new(nil)) - stmt.offset = Nodes::Offset.new(Nodes::BindParam.new(nil)) + stmt.limit = Nodes::Limit.new(Nodes::BindParam.new(1)) + stmt.offset = Nodes::Offset.new(Nodes::BindParam.new(1)) sql = compile stmt sql.must_be_like %{ SELECT * FROM ( @@ -184,8 +184,8 @@ module Arel describe "Nodes::BindParam" do it "increments each bind param" do - query = @table[:name].eq(Arel::Nodes::BindParam.new(nil)) - .and(@table[:id].eq(Arel::Nodes::BindParam.new(nil))) + query = @table[:name].eq(Arel::Nodes::BindParam.new(1)) + .and(@table[:id].eq(Arel::Nodes::BindParam.new(1))) compile(query).must_be_like %{ "users"."name" = :a1 AND "users"."id" = :a2 } -- cgit v1.2.3