~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to vendor/gems/mocha-0.5.6/lib/mocha/standalone.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'mocha/auto_verify'
 
2
require 'mocha/parameter_matchers'
 
3
require 'mocha/setup_and_teardown'
 
4
 
 
5
module Mocha
 
6
  
 
7
  module Standalone
 
8
    
 
9
    include AutoVerify
 
10
    include ParameterMatchers
 
11
    include SetupAndTeardown
 
12
    
 
13
    def mocha_setup
 
14
      setup_stubs
 
15
    end
 
16
    
 
17
    def mocha_verify(&block)
 
18
      verify_mocks(&block)
 
19
      verify_stubs(&block)
 
20
    end
 
21
    
 
22
    def mocha_teardown
 
23
      begin
 
24
        teardown_mocks
 
25
      ensure
 
26
        teardown_stubs
 
27
      end
 
28
    end
 
29
    
 
30
  end
 
31
  
 
32
end
 
 
b'\\ No newline at end of file'