Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Push some logic into a method.

  • Loading branch information...
commit 4bbe610c16c23cd41d0f0b82fc7dc99dff5882d9 1 parent b0f1f99
@gabebw gabebw authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/bourne/api.rb
View
6 lib/bourne/api.rb
@@ -78,9 +78,13 @@ def invocations
def matching_stubs
Mockery.instance.stubba.stubba_methods.select do |method|
- method.mock.equal?(@mock) && method.method == @expected_method_name
+ matching_stub?(method)
end
end
+
+ def matching_stub?(method)
+ method.mock.equal?(@mock) && method.method == @expected_method_name
+ end
end
# :call-seq:
Please sign in to comment.
Something went wrong with that request. Please try again.