Sha256: cd660418dbfa2fe2a0889b4d5008827624e31c6f00673f0493846d908b1d3819

Contents?: true

Size: 1.76 KB

Versions: 2

Compression:

Stored size: 1.76 KB

Contents

require "api_matchers/version"
require "active_support/core_ext/object"
require "active_support/core_ext/class"

module APIMatchers
  autoload :RSpecMatchers, 'api_matchers/core/rspec_matchers'

  # HTTP Status Code Matchers
  #
  module HTTPStatusCode
    autoload :Base, 'api_matchers/http_status_code/base'
    autoload :BeBadRequest, 'api_matchers/http_status_code/be_bad_request'
    autoload :BeNotFound, 'api_matchers/http_status_code/be_not_found'
    autoload :BeInternalServerError, 'api_matchers/http_status_code/be_internal_server_error'
    autoload :BeUnauthorized, 'api_matchers/http_status_code/be_unauthorized'
    autoload :BeOk, 'api_matchers/http_status_code/be_ok'
    autoload :BeUnprocessableEntity, 'api_matchers/http_status_code/be_unprocessable_entity'
    autoload :CreateResource, 'api_matchers/http_status_code/create_resource'
  end

  # Content Type Matchers
  #
  module Headers
    autoload :Base, 'api_matchers/headers/base'
    autoload :BeXML, 'api_matchers/headers/be_xml'
    autoload :BeJSON, 'api_matchers/headers/be_json'
  end

  # Response Body Matchers
  #
  module ResponseBody
    autoload :Base, 'api_matchers/response_body/base'
    autoload :HaveJsonNode, 'api_matchers/response_body/have_json_node'
    autoload :HaveJson, 'api_matchers/response_body/have_json'
    autoload :HaveXmlNode,  'api_matchers/response_body/have_xml_node'
    autoload :HaveNode, 'api_matchers/response_body/have_node'
  end

  # Core
  #
  module Core
    autoload :FindInJSON, 'api_matchers/core/find_in_json'
    autoload :Parser, 'api_matchers/core/parser'
    autoload :Setup, 'api_matchers/core/setup'
    autoload :Exceptions, 'api_matchers/core/exceptions'
  end
  include ::APIMatchers::Core::Exceptions

  def self.setup
    yield(::APIMatchers::Core::Setup)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api_matchers-0.5.1 lib/api_matchers.rb
api_matchers-0.5.0 lib/api_matchers.rb