Skip to content

Instantly share code, notes, and snippets.

@adamwiggins
Created August 19, 2009 01:41
Show Gist options
  • Save adamwiggins/170097 to your computer and use it in GitHub Desktop.
Save adamwiggins/170097 to your computer and use it in GitHub Desktop.
require 'bacon'
require 'mocha/standalone'
require 'mocha/object'
class Bacon::Context
include Mocha::Standalone
def initialize(name, &block)
@name = name
@before, @after = [
[lambda { mocha_setup }],
[lambda { mocha_verify ; mocha_teardown }]
]
@block = block
end
def xit(desc, &bk)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment