aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_oracle.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-24 09:08:24 -0400
committerSean Griffin <sean@seantheprogrammer.com>2017-07-24 09:08:24 -0400
commitbfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68 (patch)
treecf3ddae40bb0fb95ab41549003ae12778df972ed /test/visitors/test_oracle.rb
parent7a29220c689feb0581e21d5324b85fc2f201ac5e (diff)
downloadrails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.tar.gz
rails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.tar.bz2
rails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.zip
Fix test failures
Diffstat (limited to 'test/visitors/test_oracle.rb')
-rw-r--r--test/visitors/test_oracle.rb8
1 files changed, 4 insertions, 4 deletions
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
}