diff --git a/features/support/header.rb b/features/support/header.rb index 08e3b5a..10da76a 100644 --- a/features/support/header.rb +++ b/features/support/header.rb @@ -10,6 +10,9 @@ module HeaderUtils end def set_headers(headers) - headers.each(&method(:set_header)) + # The call 'headers.each(&method(:set_header))' breaks on ruby 2.0.0-p598, which is the + # default version on CentOS 7. When that SO updates ruby, this should be reverted to + # the more concise syntax. + headers.each { |key, value| method(:set_header).call(key, value) } end end -- libgit2 0.21.2