Permalink
Browse files

hints

  • Loading branch information...
1 parent e7086e8 commit edebb8ba27542170cea0362adad64862b94c8fa8 @grosser grosser committed Jun 5, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 bourne.gemspec
  2. +3 −2 lib/bourne/mock.rb
View
2 bourne.gemspec
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency('mocha', '0.11.4')
+ s.add_dependency('mocha', '0.11.4') # when updating this, make sure to update mock.rb and it's tests by copying changes from mocha
s.add_development_dependency('rake')
end
View
5 lib/bourne/mock.rb
@@ -2,8 +2,9 @@
require 'bourne/expectation'
module Mocha # :nodoc:
- # Overwrites #method_missing on Mocha::Mock so pass arguments to
- # Mocha::Expectation#invoke so that an Invocation can be created.
+ # Overwrites #method_missing on Mocha::Mock
+ # - pass arguments to invoke to create Invocation
+ # - keep lower else branch
class Mock # :nodoc:
def method_missing(symbol, *arguments, &block)
if @responder and not @responder.respond_to?(symbol)

0 comments on commit edebb8b

Please sign in to comment.