Method: EmailSpec::Matchers::HaveHeader#description

Defined in:
lib/email_spec/matchers.rb

#descriptionObject



339
340
341
342
343
344
345
# File 'lib/email_spec/matchers.rb', line 339

def description
  if @expected_value.is_a?(String)
    "have header #{@expected_name}: #{@expected_value}"
  else
    "have header #{@expected_name} with value matching #{@expected_value.inspect}"
  end
end