1
# stub frameworks like to gum up Object, so this is deliberately
2
# set NOT to run so that you don't accidentally run it when you
5
# To run it, stand in this directory and say:
7
# RUN_MOCHA_EXAMPLE=true ruby ../bin/spec mocking_with_mocha.rb
9
if ENV['RUN_MOCHA_EXAMPLE']
10
Spec::Runner.configure do |config|
11
config.mock_with :mocha
13
describe "Mocha framework" do
14
it "should should be made available by saying config.mock_with :mocha" do
16
m.expects(:msg).with("arg")
19
it "should should be made available by saying config.mock_with :mocha" do
21
o.expects(:msg).with("arg")