Skip to content

Instantly share code, notes, and snippets.

@drnic
Created March 17, 2009 13:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save drnic/80554 to your computer and use it in GitHub Desktop.
Save drnic/80554 to your computer and use it in GitHub Desktop.
For mocha integration into Cucumber, add this file into features/support folder
# For mocha integration, add this file into features/support folder
require "mocha"
World(Mocha::Standalone)
Before do
mocha_setup
end
After do
begin
mocha_verify
ensure
mocha_teardown
end
end
@lacco
Copy link

lacco commented Apr 7, 2012

In newer mocha versions, use World(Mocha::API) instead of World(Mocha::Standalone)

@sieudang2002
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment