Class: Surrogate::RSpec::InitializationMatcher

Inherits:
VerbMatcher show all
Defined in:
lib/surrogate/rspec/initialization_matcher.rb

Instance Attribute Summary

Attributes inherited from InvocationMatcher

#method_name, #surrogate, #times_predicate, #with_filter

Instance Method Summary collapse

Methods inherited from InvocationMatcher

#failure_message, #failure_message_when_negated, #filtered_args, #invocations, #matches?, #message_for, #times, #with

Constructor Details

#initialize(*initialization_args, &block) ⇒ InitializationMatcher

Returns a new instance of InitializationMatcher.



6
7
8
9
# File 'lib/surrogate/rspec/initialization_matcher.rb', line 6

def initialize(*initialization_args, &block)
  super :initialize
  with *initialization_args, &block
end