public
Fork of dchelimsky/rspec-tmbundle
Description: Textmate bundle for RSpec.
Clone URL: git://github.com/timcharper/rspec-tmbundle.git
extract method
dchelimsky (author)
Sun Mar 30 11:12:49 -0700 2008
commit  8ea84aadbc0f805c670e536e51713b9dde5761a1
tree    21aafa281d851dc645acfbd941e2d74ebe9b0609
parent  6111eeeb8ad02cf94d0652863abc4ad9c90d71e4
...
156
157
158
159
160
 
161
162
163
...
165
166
167
 
 
 
 
 
168
169
170
...
156
157
158
 
 
159
160
161
162
...
164
165
166
167
168
169
170
171
172
173
174
0
@@ -156,8 +156,7 @@ module Spec
0
       end
0
        
0
       def verify_messages_received
0
- return if ignoring_args? || matches_exact_count? ||
0
- matches_at_least_count? || matches_at_most_count?
0
+ return if expected_messages_received?
0
     
0
         generate_error
0
       rescue Spec::Mocks::MockExpectationError => error
0
@@ -165,6 +164,11 @@ module Spec
0
         Kernel::raise error
0
       end
0
       
0
+ def expected_messages_received?
0
+ ignoring_args? || matches_exact_count? ||
0
+ matches_at_least_count? || matches_at_most_count?
0
+ end
0
+
0
       def ignoring_args?
0
         @expected_received_count == :any
0
       end

Comments

    No one has commented yet.