Browse files

add comments

  • Loading branch information...
thoughtless committed May 28, 2011
1 parent 9cfdb26 commit 1b04d41ffe481ce552db847759f7e47e6dfa0eec
Showing with 10 additions and 0 deletions.
  1. +8 −0 lib/rspec/process_mocks/message_expectation.rb
  2. +2 −0 lib/rspec/process_mocks/method_double.rb
@@ -35,6 +35,8 @@ def verify_messages_received
Kernel::raise error
# This is a hack to get it to work. But it means we can only ever expect
# exactly 1 message.
def matches_exact_count?
lines.size == 1
@@ -50,6 +52,12 @@ def invoke(*args, &block)
# yield block, *args if defined?(block)
# This is a hack to get it to work. But it means we don't get info about
# "similar" methods in the failure output. Similar messages are those with
# a matching method name, but not matching arguments.
# Note: this is only a rough definition of "similar" methods. "Similar"
# methods are not part of RSpec's external API, so their definition is not
# strictly documented.
def similar_messages
@@ -1,6 +1,8 @@
module RSpec
module ProcessMocks
module MethodDouble
# This has no checking for existing expectations on this object (like RSpec
# does). It will probably only work if you set one expectation per object.
def add_child_process_expectation(error_generator, expectation_ordering, expected_from, opts, &block)
# expectation = if existing_stub = stubs.first

0 comments on commit 1b04d41

Please sign in to comment.