Skip to content
Browse files

Push some logic into a method.

  • Loading branch information...
1 parent b0f1f99 commit 4bbe610c16c23cd41d0f0b82fc7dc99dff5882d9 @gabebw gabebw committed
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:

0 comments on commit 4bbe610

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