Class: RSpec::Raml::Matchers::BeRamlContentType
- Inherits:
-
Abstract
- Object
- Abstract
- RSpec::Raml::Matchers::BeRamlContentType
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?
Instance Method Details
#description ⇒ Object
7
8
9
|
# File 'lib/rspec/raml/matchers/be_raml_content_type.rb', line 7
def description
'be RAML content type'
end
|
#failure_message ⇒ Object
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_negated ⇒ Object
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
|