diff options
Diffstat (limited to 'test/visitors/test_to_sql.rb')
-rw-r--r-- | test/visitors/test_to_sql.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 31279b0ae2..77756b9e99 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true require 'helper' -require 'set' +require 'bigdecimal' module Arel module Visitors @@ -17,13 +17,13 @@ module Arel end it 'works with BindParams' do - node = Nodes::BindParam.new + node = Nodes::BindParam.new(1) sql = compile node sql.must_be_like '?' end it 'does not quote BindParams used as part of a Values' do - bp = Nodes::BindParam.new + bp = Nodes::BindParam.new(1) values = Nodes::Values.new([bp]) sql = compile values sql.must_be_like 'VALUES (?)' @@ -31,7 +31,7 @@ module Arel it 'can define a dispatch method' do visited = false - viz = Class.new(Arel::Visitors::Reduce) { + viz = Class.new(Arel::Visitors::Visitor) { define_method(:hello) do |node, c| visited = true end |