Module: Bacon::MochaSpec
- Defined in:
- lib/bacon/ext/mocha.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
36 37 38 |
# File 'lib/bacon/ext/mocha.rb', line 36 def self.included(base) base.send(:include, Mocha::API) end |
Instance Method Details
#execute_spec(&block) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/bacon/ext/mocha.rb', line 40 def execute_spec(&block) super do begin mocha_setup block.call mocha_verify(MochaRequirementsCounter) ensure mocha_teardown end end end |