Sha256: cd301064aedf9bb20006935ecdbf9e618afbb720c5eb6cf85e33ce60f570c709
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | vendor/hardmock/lib/hardmock/expector.rb |
ceedling-0.29.0 | vendor/hardmock/lib/hardmock/expector.rb |