class RspecRequestHelpers::Configuration
Attributes
content_types[RW]
status_codes[RW]
Public Class Methods
new()
click to toggle source
# File lib/rspec_request_helpers/configuration.rb, line 11 def initialize @content_types = { json: 'application/json' } @status_codes = [404, 401, 422, 200, 201] end
Public Instance Methods
symbols_with_status_codes()
click to toggle source
# File lib/rspec_request_helpers/configuration.rb, line 16 def symbols_with_status_codes status_codes.inject({}) do |hash, code| hash[STATUS_CODE_TO_SYMBOL[code]] = code hash end end