Sha256: d45a249cb199cb6358a999c844301b34a08e086e93f068c49d042f8dd3be0c0f
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
require 'muack/mock' module Muack class Stub < Mock # used for Muack::Session#verify def __mock_verify; true; end # used for mocked object to dispatch mocked method def __mock_dispatch msg, actual_args if defi = __mock_defis[msg].find{ |d| __mock_check_args(d.args, actual_args) } __mock_disps_push(defi) # our spies are interested in this defi else Mock.__send__(:raise, # Wrong argument Unexpected.new(object, __mock_defis[msg], msg, actual_args)) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
muack-1.0.1 | lib/muack/stub.rb |
muack-1.0.0 | lib/muack/stub.rb |
muack-0.7.3 | lib/muack/stub.rb |
muack-0.7.2 | lib/muack/stub.rb |
muack-0.7.1 | lib/muack/stub.rb |
muack-0.7.0 | lib/muack/stub.rb |