Class: RSpec::Core::Notifications::DeprecationNotification

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/core/notifications.rb

Overview

The DeprecationNotification is issued by the reporter when a deprecated part of RSpec is encountered. It represents information about the deprecated call site.

Instance Attribute Summary collapse

Instance Attribute Details

#call_siteString

An optional call site from which the deprecation was issued

Returns:

  • (String)

    the current value of call_site



514
515
516
# File 'lib/rspec/core/notifications.rb', line 514

def call_site
  @call_site
end

#deprecatedString

A custom message about the deprecation (alias of message)

Returns:

  • (String)

    the current value of deprecated



514
515
516
# File 'lib/rspec/core/notifications.rb', line 514

def deprecated
  @deprecated
end

#messageString

A custom message about the deprecation

Returns:

  • (String)

    the current value of message



514
515
516
# File 'lib/rspec/core/notifications.rb', line 514

def message
  @message
end

#replacementString

An optional replacement for the deprecation

Returns:

  • (String)

    the current value of replacement



514
515
516
# File 'lib/rspec/core/notifications.rb', line 514

def replacement
  @replacement
end