Class: RSpec::Raml::Matchers::BeRamlContentType

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rspec/raml/matchers/be_raml_content_type.rb

Instance Attribute Summary

Attributes inherited from Abstract

#raml, #response, #status, #url, #verb

Instance Method Summary collapse

Methods inherited from Abstract

#initialize, #matches?

Constructor Details

This class inherits a constructor from RSpec::Raml::Matchers::Abstract

Instance Method Details

#descriptionObject



7
8
9
# File 'lib/rspec/raml/matchers/be_raml_content_type.rb', line 7

def description
  'be RAML content type'
end

#failure_messageObject



11
12
13
# File 'lib/rspec/raml/matchers/be_raml_content_type.rb', line 11

def failure_message
  "expected RAML to declare a response for content type: #{content_type}"
end

#failure_message_when_negatedObject



15
16
17
# File 'lib/rspec/raml/matchers/be_raml_content_type.rb', line 15

def failure_message_when_negated
  "expected RAML not to declare content type: #{content_type}"
end