Flowdock
method

build_expectation

Importance_0
1.3.0 - Show latest stable - 0 notes - Class: Spec::Mocks::Proxy
build_expectation(expected_from, sym, opts, &block) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/mocks/proxy.rb, line 47
      def build_expectation(expected_from, sym, opts, &block)
        if stub = find_matching_method_stub(sym) 
          stub.build_child(expected_from, block_given?? block : nil, 1, opts)
        else
          MessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, block_given? ? block : nil, 1, opts)
        end
      end
Register or log in to add new notes.