View Source API Reference MockMe v0.2.1
Modules
MockMe is a simple mock server used to mock out your third party services in your tests. Unlike many mocking
solutions, MockMe starts a real HTTP server and serves real static responses which may be toggled easily using
the MockMe.set_response(:test, :result)
function in your tests.
Used to define how the mocked endpoint should respond.
Used to handle the toggling of the responses based on the route flag.
A struct for defining routes and their test cases
Used to keep track of state for mocks in tests. Holds a map of route names and response flags which the server uses to determine which response to serve.