diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-04-11 14:44:20 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-04-11 14:44:20 -0300 |
commit | 1659fdc2998bb84847b091f32dd9346440532d49 (patch) | |
tree | 9c2480056b2290d87bb50f6360c579b5ce09c49b /test | |
parent | 7a5faf5fee02accd6d96963444ad5c386613b91f (diff) | |
parent | 91b593dc19e8700540e78927e42a876730165f2b (diff) | |
download | rails-1659fdc2998bb84847b091f32dd9346440532d49.tar.gz rails-1659fdc2998bb84847b091f32dd9346440532d49.tar.bz2 rails-1659fdc2998bb84847b091f32dd9346440532d49.zip |
Merge pull request #425 from vipulnsward/fix-warnings
Fix warnings from test_to_sql test
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 6da86c2dee..6833d4e8f5 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -695,7 +695,7 @@ module Arel it 'supports #when with two arguments and no #then' do node = Arel::Nodes::Case.new @table[:name] - { foo: 1, bar: 0 }.reduce(node) { |node, pair| node.when *pair } + { foo: 1, bar: 0 }.reduce(node) { |_node, pair| _node.when(*pair) } compile(node).must_be_like %{ CASE "users"."name" WHEN 'foo' THEN 1 WHEN 'bar' THEN 0 END |