Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use a method that identifies an array also in 1.8.7

  • Loading branch information...
commit 57fc08d3dd6565214afdc909fea309c26ae79984 1 parent 98ef21b
@floere floere authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/compile_test.rb
View
2  test/compile_test.rb
@@ -20,7 +20,7 @@ def self.parses pattern, example, expected_params
params = keys.zip(match.captures).reduce({}) do |hash, mapping|
key, value = mapping
hash[key] = if existing = hash[key]
- existing.respond_to?(:each) ? existing << value : [existing, value]
+ existing.respond_to?(:to_ary) ? existing << value : [existing, value]
else
value
end
Please sign in to comment.
Something went wrong with that request. Please try again.