Sha256: 4fccaff944d0c71da210fdf81448266c73e25273afd5ac2c3ebe31c96b43df43
Contents?: true
Size: 599 Bytes
Versions: 42
Compression:
Stored size: 599 Bytes
Contents
require 'hardmock/method_cleanout' require 'hardmock/errors' module Hardmock class Expector #:nodoc: include MethodCleanout def initialize(mock,mock_control,expectation_builder) @mock = mock @mock_control = mock_control @expectation_builder = expectation_builder end def method_missing(mname, *args, &block) expectation = @expectation_builder.build_expectation( :mock => @mock, :method => mname, :arguments => args, :block => block) @mock_control.add_expectation expectation expectation end end end
Version data entries
42 entries across 39 versions & 3 rubygems