aboutsummaryrefslogtreecommitdiffstats
path: root/test/collectors/test_sql_string.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-24 09:08:24 -0400
committerSean Griffin <sean@seantheprogrammer.com>2017-07-24 09:08:24 -0400
commitbfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68 (patch)
treecf3ddae40bb0fb95ab41549003ae12778df972ed /test/collectors/test_sql_string.rb
parent7a29220c689feb0581e21d5324b85fc2f201ac5e (diff)
downloadrails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.tar.gz
rails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.tar.bz2
rails-bfb770dbcc8432b8d4c1824be0fb2b1ab1ce5d68.zip
Fix test failures
Diffstat (limited to 'test/collectors/test_sql_string.rb')
-rw-r--r--test/collectors/test_sql_string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/collectors/test_sql_string.rb b/test/collectors/test_sql_string.rb
index debec8e9c9..0185f2ab17 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(nil)
+ bv = Nodes::BindParam.new(1)
collector = collect ast_with_binds bv
sql = collector.compile ["hello", "world"]
@@ -35,7 +35,7 @@ module Arel
end
def test_returned_sql_uses_utf8_encoding
- bv = Nodes::BindParam.new(nil)
+ bv = Nodes::BindParam.new(1)
collector = collect ast_with_binds bv
sql = collector.compile ["hello", "world"]