aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_oracle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_oracle.rb')
-rw-r--r--test/visitors/test_oracle.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_oracle.rb b/test/visitors/test_oracle.rb
index bb0fe404e8..9111a266cf 100644
--- a/test/visitors/test_oracle.rb
+++ b/test/visitors/test_oracle.rb
@@ -100,7 +100,7 @@ module Arel
it 'creates a different subquery when there is an offset' do
stmt = Nodes::SelectStatement.new
- stmt.limit = Nodes::Limit.new(10)
+ stmt.limit = Nodes::Limit.new(Nodes.build_quoted(10))
stmt.offset = Nodes::Offset.new(10)
sql = compile stmt
sql.must_be_like %{
@@ -115,7 +115,7 @@ module Arel
it 'is idempotent with different subquery' do
stmt = Nodes::SelectStatement.new
- stmt.limit = Nodes::Limit.new(10)
+ stmt.limit = Nodes::Limit.new(Nodes.build_quoted(10))
stmt.offset = Nodes::Offset.new(10)
sql = compile stmt
sql2 = compile stmt