Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 2858b4add9
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (7 sloc) 0.794 kb

Testing Objective-C networking code using Mimic

This sample project contains an example of testing HTTP connectivity using the Mimic gem and it's REST API to configure the stubs.

It uses the Resty framework for simple, block-based networking and Kiwi and Hamcrest to improve test readability.

Running the example test

After cloning the project, you'll need to initialize the git submodules to get Kiwi and Hamcrest. You'll also need the bundler gem. Install the Mimic gem from the latest HEAD by running bundle.

You should now be able to load Xcode, select the Specs target and build successfully.

Try changing the stubbed response body and see the test fail.

Jump to Line
Something went wrong with that request. Please try again.