diff --git a/spec/erb_helper.rb b/spec/erb_helper.rb index 7b2662ce..2c7b8daf 100644 --- a/spec/erb_helper.rb +++ b/spec/erb_helper.rb @@ -14,11 +14,7 @@ end ERBh.define_method(:cond) do |conds, m, e = nil| - if conds.is_a?(Hash) - conds.find do |c, _| - condition(c) - end&.last || m - elsif condition(conds) + if condition(conds) m else e || (begin