drnic (owner)

Forks

Revisions

gist: 80554 Download_button fork
public
Description:
For mocha integration into Cucumber, add this file into features/support folder
Public Clone URL: git://gist.github.com/80554.git
Embed All Files: show embed
features/support/mocha.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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