~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/method_matcher.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mto: (3.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080726154345-1fmgo76b4l72ulvc
ImportĀ upstreamĀ versionĀ 0.24.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module Mocha
 
2
  
 
3
  class MethodMatcher
 
4
    
 
5
    attr_reader :expected_method_name
 
6
    
 
7
    def initialize(expected_method_name)
 
8
      @expected_method_name = expected_method_name
 
9
    end
 
10
    
 
11
    def match?(actual_method_name)
 
12
      @expected_method_name == actual_method_name
 
13
    end
 
14
    
 
15
    def mocha_inspect
 
16
      "#{@expected_method_name}"
 
17
    end
 
18
    
 
19
  end
 
20
 
 
21
end
 
 
b'\\ No newline at end of file'