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

- (String) call_site

An optional call site from which the deprecation was issued



519
520
521
# File 'lib/rspec/core/notifications.rb', line 519

def call_site
  @call_site
end

- (String) deprecated

A custom message about the deprecation (alias of message)



519
520
521
# File 'lib/rspec/core/notifications.rb', line 519

def deprecated
  @deprecated
end

- (String) message

A custom message about the deprecation



519
520
521
# File 'lib/rspec/core/notifications.rb', line 519

def message
  @message
end

- (String) replacement

An optional replacement for the deprecation



519
520
521
# File 'lib/rspec/core/notifications.rb', line 519

def replacement
  @replacement
end