Module: HTTP::Support::RspecMatchers

Extended by:
RSpec::Matchers::DSL
Defined in:
lib/http/support/rspec_matchers.rb

Constant Summary collapse

STATUS_CODE_TO_SYMBOL =
HTTP::Response::Status::REASONS
                        .transform_values do |name|
  name.gsub(/[- ]/, "_")
      .downcase.gsub(/[^a-z_]/, "")
      .to_sym
end
STATUS_SYMBOL_TO_CODE =
STATUS_CODE_TO_SYMBOL.invert