class RSpec::SleepingKingStudios::Deferred::Calls::Example
Value object representing a deferred RSpec
example.
Attributes
@return [Deferred::Examples] the deferred example group defining the
deferred call.
Public Class Methods
Source
# File lib/rspec/sleeping_king_studios/deferred/calls/example.rb, line 15 def initialize( method_name, *arguments, deferred_example_group: nil, **keywords, &block ) super(method_name, *arguments, **keywords, &block) @deferred_example_group = deferred_example_group end
@param method_name [String, Symbol] the name of the method to call. @param arguments [Array] the arguments to pass to the method. @param keywords [Hash] the keywords to pass to the method. @param deferred_example_group
[Deferred::Examples] the deferred example
group defining the deferred call.
@param block [Proc] the block to pass to the method.
Calls superclass method
RSpec::SleepingKingStudios::Deferred::Call::new
Public Instance Methods
Source
# File lib/rspec/sleeping_king_studios/deferred/calls/example.rb, line 32 def call(receiver) example = super # Store a reference to the deferred group when adding to an actual example # group. example.metadata[:deferred_example_group] = @deferred_example_group example end
(see RSpec::SleepingKingStudios::Deferred::Call#call
)
Calls superclass method
RSpec::SleepingKingStudios::Deferred::Call#call