aboutsummaryrefslogtreecommitdiffstats
path: root/test/collectors
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-26 13:54:36 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-26 13:54:36 -0300
commit517b0e53db663e73dfd5ff9d29ee54c6c3ca1de1 (patch)
tree44aec268801603fc2783295a3cc471c9bab27580 /test/collectors
parentfd703fcdc12b2bc850f263b7451eb611dde47695 (diff)
parent1e2c01db15ceecd97b53b32a954ad8bf164b397a (diff)
downloadrails-517b0e53db663e73dfd5ff9d29ee54c6c3ca1de1.tar.gz
rails-517b0e53db663e73dfd5ff9d29ee54c6c3ca1de1.tar.bz2
rails-517b0e53db663e73dfd5ff9d29ee54c6c3ca1de1.zip
Merge pull request #275 from vipulnsward/fix-warning
Fix warning from bind collector test
Diffstat (limited to 'test/collectors')
-rw-r--r--test/collectors/test_bind_collector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/collectors/test_bind_collector.rb b/test/collectors/test_bind_collector.rb
index 036d8f05fe..60532f061c 100644
--- a/test/collectors/test_bind_collector.rb
+++ b/test/collectors/test_bind_collector.rb
@@ -49,7 +49,7 @@ module Arel
offsets = values.map.with_index { |v,i|
[v,i]
- }.find_all { |(v,i)| Nodes::BindParam === v }.map(&:last)
+ }.find_all { |(v,_)| Nodes::BindParam === v }.map(&:last)
list = collector.substitute_binds ["hello", "world"]
assert_equal "hello", list[offsets[0]]