Sha256: ca0d7a34fb5e1c711520b4e61e5c1f49bc1a5bddd6638875f12e8e00328aba61

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module RspecInContext
  module ContextManagement
    def subclass(parent, description, args, registration_collection, &example_group_block)
      subclass = super
      RspecInContext::InContext.remove_context(subclass)
      subclass
    end
  end
end

module RSpec
  module Core
    class ExampleGroup
      class << self
        prepend RspecInContext::ContextManagement
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec_in_context-0.3.2 lib/rspec_in_context/context_management.rb
rspec_in_context-0.3.1 lib/rspec_in_context/context_management.rb
rspec_in_context-0.3.0 lib/rspec_in_context/context_management.rb
rspec_in_context-0.2.0 lib/rspec_in_context/context_management.rb
rspec_in_context-0.1.5 lib/rspec_in_context/context_management.rb
rspec_in_context-0.1.4 lib/rspec_in_context/context_management.rb
rspec_in_context-0.1.3 lib/rspec_in_context/context_management.rb