aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_to_sql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_to_sql.rb')
-rw-r--r--test/visitors/test_to_sql.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb
index 4ed1f225ce..eb102c1905 100644
--- a/test/visitors/test_to_sql.rb
+++ b/test/visitors/test_to_sql.rb
@@ -6,7 +6,6 @@ module Arel
before do
@conn = FakeRecord::Base.new
@visitor = ToSql.new @conn.connection
- @collector = Collectors::SQLString.new
@table = Table.new(:users)
@attr = @table[:id]
end
@@ -33,7 +32,7 @@ module Arel
end
}.new
- viz.accept(@table, @collector)
+ viz.accept(@table, Collectors::SQLString.new)
assert visited, 'hello method was called'
end