aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_depth_first.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_depth_first.rb')
-rw-r--r--test/visitors/test_depth_first.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb
index e078d4add5..5bbdf57697 100644
--- a/test/visitors/test_depth_first.rb
+++ b/test/visitors/test_depth_first.rb
@@ -50,14 +50,14 @@ module Arel
Arel::Nodes::Sum,
].each do |klass|
define_method("test_#{klass.name.gsub('::', '_')}") do
- func = klass.new(:a, :b)
+ func = klass.new(:a, "b")
@visitor.accept func
assert_equal [:a, "b", false, func], @collector.calls
end
end
def test_named_function
- func = Arel::Nodes::NamedFunction.new(:a, :b, :c)
+ func = Arel::Nodes::NamedFunction.new(:a, :b, "c")
@visitor.accept func
assert_equal [:a, :b, false, "c", func], @collector.calls
end
@@ -69,7 +69,7 @@ module Arel
end
def test_count
- count = Nodes::Count.new :a, :b, :c
+ count = Nodes::Count.new :a, :b, "c"
@visitor.accept count
assert_equal [:a, "c", :b, count], @collector.calls
end