Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example of using the Mimic gem to stub network requests from within an Objective-C test case

branch: master
README.markdown

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.

Something went wrong with that request. Please try again.