Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hints

  • Loading branch information...
commit edebb8ba27542170cea0362adad64862b94c8fa8 1 parent e7086e8
Michael Grosser grosser authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  bourne.gemspec
  2. +3 −2 lib/bourne/mock.rb
2  bourne.gemspec
View
@@ -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
5 lib/bourne/mock.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.