Home · Blog · Talks · Projects

Mocha on Bacon

Some time ago, I removed Bacon integration from Mocha after deciding to only maintain integration with
Test::Unit and MiniTest which are both Ruby standard libraries.

Happily Eloy Duran has just re-incarnated the Mocha adapter for Bacon. He’s updated the code a bit and re-written the tests. Thanks, Eloy.

Here’s an example of what you can do with Bacon and Mocha :-

require File.expand_path('../spec_helper', __FILE__)

describe "Bacon specs using Mocha, with a mock" do

  extend MochaBaconHelper

  it "passes when all expectations were fulfilled" do
    mockee = mock()
    lambda do
    end.should.be satisfied

Contact · History · Colophon · Links