aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_bin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/nodes/test_bin.rb')
-rw-r--r--test/nodes/test_bin.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nodes/test_bin.rb b/test/nodes/test_bin.rb
index b06aeb0b0d..7f123eab13 100644
--- a/test/nodes/test_bin.rb
+++ b/test/nodes/test_bin.rb
@@ -8,13 +8,13 @@ module Arel
end
def test_default_to_sql
- viz = Arel::Visitors::ToSql.new Table.engine
+ viz = Arel::Visitors::ToSql.new Table.engine.connection_pool
node = Arel::Nodes::Bin.new(Arel.sql('zomg'))
assert_equal 'zomg', viz.accept(node)
end
def test_mysql_to_sql
- viz = Arel::Visitors::MySQL.new Table.engine
+ viz = Arel::Visitors::MySQL.new Table.engine.connection_pool
node = Arel::Nodes::Bin.new(Arel.sql('zomg'))
assert_equal 'BINARY zomg', viz.accept(node)
end