class RSpec::Raml::Matchers::Abstract
Attributes
raml[R]
response[R]
status[R]
url[R]
verb[R]
Public Class Methods
new(raml, verb, url, status)
click to toggle source
# File lib/rspec/raml/matchers/abstract.rb, line 10 def initialize(raml, verb, url, status) @raml = raml @verb = verb @url = url @status = status end
Public Instance Methods
matches?(response)
click to toggle source
# File lib/rspec/raml/matchers/abstract.rb, line 17 def matches?(response) @response = response matches_raml? end
Private Instance Methods
content_type()
click to toggle source
# File lib/rspec/raml/matchers/abstract.rb, line 24 def content_type response.content_type.to_s end