This project is abandoned
Mock out clj-http with style. Works just like VCR.
Put the following in test_helper.clj
and use it in all your test namespaces:
(betamax/configure "fixtures/betamax_cassettes")
To test using Midje:
(deftest something
(betamax/with-cassette "example-domains"
(fact (:body (clj-http.client/get "http://www.iana.org/domains/example/")) =>
#"Example Domains")))
- Fork the project
- Create a topic branch
- Implement the feature or fix the bug
- Add documentation for the feature or bug
- Add tests for the feature or bug
- Run the test suite to ensure you haven't broken anything
- Commit and push the changes
- Submit a pull request. Please do not include changes to the project.clj, version or history file.
Copyright (C) 2012 Will Roe
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php