Exception: Rack::Spec::ResponseValidation::InvalidResponseContentType

Inherits:
Error
  • Object
show all
Defined in:
lib/rack/spec/response_validation.rb

Instance Method Summary collapse

Methods inherited from Error

#to_rack_response

Constructor Details

#initializeInvalidResponseContentType

Returns a new instance of InvalidResponseContentType.



106
107
108
# File 'lib/rack/spec/response_validation.rb', line 106

def initialize
  super("Response Content-Type wasn't for JSON")
end

Instance Method Details

#idObject



110
111
112
# File 'lib/rack/spec/response_validation.rb', line 110

def id
  "invalid_response_content_type"
end

#statusObject



114
115
116
# File 'lib/rack/spec/response_validation.rb', line 114

def status
  500
end