class RSpec::Core::Configuration
def handle_suite_hook(args, collection, append_or_prepend, hook_type, block)
def handle_suite_hook(args, collection, append_or_prepend, hook_type, block) scope, meta = *args return nil unless scope == :suite if meta # TODO: in RSpec 4, consider raising an error here. # We warn only for backwards compatibility. RSpec.warn_with "WARNING: `:suite` hooks do not support metadata since " \ "they apply to the suite as a whole rather than " \ "any individual example or example group that has metadata. " \ "The metadata you have provided (#{meta.inspect}) will be ignored." end collection.__send__(append_or_prepend, hook_type.new(block, {})) end