Sha256: 81b5dc9382dae8ca7abdef0e7cf9391a38852d10bec7d42eabc1b5cca620d14a
Contents?: true
Size: 973 Bytes
Versions: 14
Compression:
Stored size: 973 Bytes
Contents
module RR class SpyVerification def initialize(subject, method_name, args) @subject = subject @method_name = method_name.to_sym set_argument_expectation_for_args(args) @ordered = false once end attr_reader :argument_expectation, :method_name, :times_matcher attr_accessor :subject include RR::DoubleDefinitions::DoubleDefinition::TimesDefinitionConstructionMethods include RR::DoubleDefinitions::DoubleDefinition::ArgumentDefinitionConstructionMethods def ordered @ordered = true self end def ordered? @ordered end protected attr_writer :times_matcher def set_argument_expectation_for_args(args) # with_no_args and with actually set @argument_expectation args.empty? ? with_no_args : with(*args) end def install_method_callback(return_value_block) # Do nothing. This is to support DefinitionConstructionMethods end end end
Version data entries
14 entries across 14 versions & 1 rubygems