Build Status Code Climate Test Coverage Dependency Status Gem Version

WireMockMapper

Ruby DSL for setting up WireMock mappings

Usage Example

WireMockMapper::Configuration.set_wiremock_url('http://my_wiremock.com')
WireMockMapper::Configuration.add_request_header('Some-Header').equal_to('some_value')

WireMockMapper.create_mapping do |request, respond|
    request.receives_post
           .with_url_path.equal_to('path/to/stub')
           .with_header('Some-Other-Header').equal_to('some_other_value')
           .with_body.equal_to(foo: bar)
    respond.with_body('good job!')
end
Special thanks to Manheim's Seller Tools team for allowing me to work on this during the team Hackathon.