Build Status Code Climate Test Coverage Dependency Status

WireMockMapper

Ruby DSL for setting up WireMock mappings

Usage Example

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

WireMockMapper.create_mapping do |request, respond|
    request.post_to_path('path/to/stub')
            .with_header('Some-Other-Header', 'some_other_value')
            .with_body(foo: bar)
    respond.with_body('good job!')
end