diff options
Diffstat (limited to 'test/collectors')
-rw-r--r-- | test/collectors/test_sql_string.rb | 2 | ||||
-rw-r--r-- | test/collectors/test_substitute_bind_collector.rb (renamed from test/collectors/test_bind_collector.rb) | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/collectors/test_sql_string.rb b/test/collectors/test_sql_string.rb index 769c2e6d53..8651296ff8 100644 --- a/test/collectors/test_sql_string.rb +++ b/test/collectors/test_sql_string.rb @@ -27,7 +27,7 @@ module Arel end def test_compile - bv = Nodes::BindParam.new + bv = Nodes::BindParam.new(nil) collector = collect ast_with_binds bv sql = collector.compile ["hello", "world"] diff --git a/test/collectors/test_bind_collector.rb b/test/collectors/test_substitute_bind_collector.rb index fef157782b..adcaf98319 100644 --- a/test/collectors/test_bind_collector.rb +++ b/test/collectors/test_substitute_bind_collector.rb @@ -4,7 +4,7 @@ require 'arel/collectors/substitute_binds' module Arel module Collectors - class TestBindCollector < Arel::Test + class TestSubstituteBindCollector < Arel::Test def setup @conn = FakeRecord::Base.new @visitor = Visitors::ToSql.new @conn.connection @@ -28,14 +28,14 @@ module Arel end def test_leaves_binds - node = Nodes::BindParam.new + node = Nodes::BindParam.new(nil) list = compile node assert_equal node, list.first assert_equal node.class, list.first.class end def test_adds_strings - bv = Nodes::BindParam.new + bv = Nodes::BindParam.new(nil) list = compile ast_with_binds bv assert_operator list.length, :>, 0 assert_equal bv, list.grep(Nodes::BindParam).first @@ -43,7 +43,7 @@ module Arel end def test_substitute_binds - bv = Nodes::BindParam.new + bv = Nodes::BindParam.new(nil) collector = collect ast_with_binds bv values = collector.value @@ -60,7 +60,7 @@ module Arel end def test_compile - bv = Nodes::BindParam.new + bv = Nodes::BindParam.new(nil) collector = collect ast_with_binds bv sql = collector.compile ["hello", "world"] |