class RSpec::Raml::Matchers::BeRamlContentType
Public Instance Methods
description()
click to toggle source
# File lib/rspec/raml/matchers/be_raml_content_type.rb, line 7 def description 'be RAML content type' end
failure_message()
click to toggle source
# 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_negated()
click to toggle source
# 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
Private Instance Methods
matches_raml?()
click to toggle source
# File lib/rspec/raml/matchers/be_raml_content_type.rb, line 21 def matches_raml? raml.bodies.key? content_type end