Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

hints

  • Loading branch information...
commit edebb8ba27542170cea0362adad64862b94c8fa8 1 parent e7086e8
Michael Grosser grosser authored

Showing 2 changed files with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  bourne.gemspec
  2. +3 2 lib/bourne/mock.rb
2  bourne.gemspec
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20 20 s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21 21 s.require_paths = ["lib"]
22 22
23   - s.add_dependency('mocha', '0.11.4')
  23 + 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
24 24
25 25 s.add_development_dependency('rake')
26 26 end
5 lib/bourne/mock.rb
@@ -2,8 +2,9 @@
2 2 require 'bourne/expectation'
3 3
4 4 module Mocha # :nodoc:
5   - # Overwrites #method_missing on Mocha::Mock so pass arguments to
6   - # Mocha::Expectation#invoke so that an Invocation can be created.
  5 + # Overwrites #method_missing on Mocha::Mock
  6 + # - pass arguments to invoke to create Invocation
  7 + # - keep lower else branch
7 8 class Mock # :nodoc:
8 9 def method_missing(symbol, *arguments, &block)
9 10 if @responder and not @responder.respond_to?(symbol)

0 comments on commit edebb8b

Please sign in to comment.
Something went wrong with that request. Please try again.