module RSpec::SleepingKingStudios::Deferred::Dsl::SharedExamples::Macros
Meta-methods for defining deferred examples.
Public Instance Methods
Source
# File lib/rspec/sleeping_king_studios/deferred/dsl/shared_examples.rb, line 17 def define_included_examples_method(method_name) # rubocop:disable Metrics/MethodLength define_method(method_name) do |name, *args, **kwargs, &block| deferred_calls << RSpec::SleepingKingStudios::Deferred::Calls::IncludedExamples.new( method_name, name, *args, **kwargs, &block ) nil end end
Registers a method for deferring including a shared example group.
@param method_name [String, Symbol] the name of the deferred method.
@return [void]