From 4b8f3ae44e26fa4b81895fe7a24d4b9e9435e71e Mon Sep 17 00:00:00 2001 From: Diego Araújo Date: Wed, 4 May 2016 14:38:29 -0300 Subject: [PATCH] Fix HeaderUtils to support ruby version on CentOS 7 --- features/support/header.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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