Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Switch from require 'mocha' to require 'mocha/api' as suggested by the library. #17

wants to merge 1 commit into from

2 participants


This change avoids the deprecations in mocha/integration.rb, which don't appear in the bourne test suite.


Actually, this might not be the correct solution for non-RSpec libraries. But I'd love to get these deprecation notices fixed.


Looks like mocha now uses mocha/setup instead?

I think it probably makes sense to require mocha from bourne and add bourne/setup which requires mocha/setup.


Getting mixed signals from it, eh? It might just be easier to use require: "bourne/api" in the Gemfile. Same result, no new file.


Does doing a require 'mocha/api' before loading rspec break anything? If not, we could just require mocha/api from lib/bourne.rb and have test/unit users just require mocha/setup themselves.


Looks like this will be fixed in #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 14, 2012
  1. @tristandunn
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bourne.rb
2  lib/bourne.rb
@@ -1,2 +1,2 @@
-require 'mocha'
+require 'mocha/api'
require 'bourne/api'
Something went wrong with that request. Please try again.