Sha256: db83585ba1d537e82174e3d1d6e0a611a31b6bb03522c307b5080db5a34e7a56

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 Bytes

Contents

module RSpec
  module Core
    module Deprecation
      # @private
      #
      # Used internally to print deprecation warnings
      def deprecate(deprecated, data = {})
        RSpec.configuration.reporter.deprecation(
          {
            :deprecated => deprecated,
            :call_site => CallerFilter.first_non_rspec_line
          }.merge(data)
        )
      end

      # @private
      #
      # Used internally to print deprecation warnings
      def warn_deprecation(message)
        RSpec.configuration.reporter.deprecation :message => message
      end
    end
  end

  extend(Core::Deprecation)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-core-2.99.2 lib/rspec/core/deprecation.rb
rspec-core-2.99.1 lib/rspec/core/deprecation.rb
rspec-core-2.99.0 lib/rspec/core/deprecation.rb
rspec-core-2.99.0.rc1 lib/rspec/core/deprecation.rb
rspec-core-2.99.0.beta2 lib/rspec/core/deprecation.rb
rspec-core-2.99.0.beta1 lib/rspec/core/deprecation.rb