Skip to content
This repository
Browse code

Push some logic into a method.

  • Loading branch information...
commit 4bbe610c16c23cd41d0f0b82fc7dc99dff5882d9 1 parent b0f1f99
Gabe Berke-Williams authored March 09, 2012

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  lib/bourne/api.rb
6  lib/bourne/api.rb
@@ -78,9 +78,13 @@ def invocations
78 78
 
79 79
       def matching_stubs
80 80
         Mockery.instance.stubba.stubba_methods.select do |method|
81  
-          method.mock.equal?(@mock) && method.method == @expected_method_name
  81
+          matching_stub?(method)
82 82
         end
83 83
       end
  84
+
  85
+      def matching_stub?(method)
  86
+        method.mock.equal?(@mock) && method.method == @expected_method_name
  87
+      end
84 88
     end
85 89
 
86 90
     # :call-seq:

0 notes on commit 4bbe610

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