demarches-normaliennes/spec/support/mailer.rb

5 lines
122 B
Ruby

# frozen_string_literal: true
def header_value(name, message)
message.header.fields.find { _1.name == name }.value
end