Sha256: 358162b1752bd35a34aedce3fe4c884b0b150bba393f5c13d4fab3f70e6fda30

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

module RSpec

  # @private
  #
  # Used internally to print deprecation warnings
  def self.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 self.warn_deprecation(message)
    RSpec.configuration.reporter.deprecation :message => message
  end

end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
opal-rspec-cj-0.4.4 vendor_lib/rspec/core/warnings.rb
opal-rspec-0.4.3 vendor_lib/rspec/core/warnings.rb
opal-rspec-0.4.2 vendor_lib/rspec/core/warnings.rb
opal-rspec-0.4.1 vendor_lib/rspec/core/warnings.rb
opal-rspec-0.4.0 vendor_lib/rspec/core/warnings.rb
opal-rspec-0.4.0.beta4 vendor_lib/rspec/core/warnings.rb
rspec-core-3.0.0.beta2 lib/rspec/core/warnings.rb
rspec-core-3.0.0.beta1 lib/rspec/core/warnings.rb