System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Commit 8ea84aadbc0f805c670e536e51713b9dde5761a1

extract method

Commit diff

rspec/lib/spec/mocks/message_expectation.rb

 
156156 end
157157
158158 def verify_messages_received
159 return if ignoring_args? || matches_exact_count? ||
160 matches_at_least_count? || matches_at_most_count?
159 return if expected_messages_received?
161160
162161 generate_error
163162 rescue Spec::Mocks::MockExpectationError => error
164164 Kernel::raise error
165165 end
166166
167 def expected_messages_received?
168 ignoring_args? || matches_exact_count? ||
169 matches_at_least_count? || matches_at_most_count?
170 end
171
167172 def ignoring_args?
168173 @expected_received_count == :any
169174 end
toggle raw diff