Sha256: b7e5d428a44f01cc9a34de3d6d7d09eb6cf54a193d8296619d27675b8894a9b3

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

module RSpec
  module Core
    class ExampleGroup

      class << self
        alias_method :concern, :describe if instance_methods.include?(:describe)

        def register_concern
          alias_method :concern, :describe if instance_methods.include?(:describe)
        end

        def singleton_method_added name
          class << self
            undef_method :register_concern
          end if name == :describe
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
carrier-0.1.2 spec/support/rspec_helpers.rb
carrier-0.1.1 spec/support/rspec_helpers.rb
carrier-0.1.0 spec/support/rspec_helpers.rb
carrier-0.0.6 spec/support/rspec_helpers.rb
simple_roles-0.0.5 spec/support/rspec_helpers.rb