Sha256: a3af34a83aa67f5104c91359a34978b79bcaf90e55ec08a8ad4d70c5073e5a4b
Contents?: true
Size: 671 Bytes
Versions: 9
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true module RspecInContext # Allow context to be scoped inside a block module ContextManagement # @api private # prepending a RSpec method so we can know when a describe/context block finish # its reading def subclass(parent, description, args, registration_collection, &example_group_block) subclass = super RspecInContext::InContext.remove_context(subclass) subclass end end end module RSpec # Core module Core # ExampleGroup class ExampleGroup class << self # allow context management to work prepend RspecInContext::ContextManagement end end end end
Version data entries
9 entries across 9 versions & 1 rubygems