123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Notifications::GroupNotification

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: rspec-core/lib/rspec/core/notifications.rb

Overview

The GroupNotification represents notifications sent by the reporter which contain information about the currently running (or soon to be) example group. It is used by formatters to access information about that group.

Examples:

def example_group_started(notification)
  puts "Hey I started #{notification.group.description}"
end

Instance Attribute Summary

  • #group rw

    The GroupNotification represents notifications sent by the reporter which contain information about the currently running (or soon to be) example group.

Instance Attribute Details

#group (rw)

The GroupNotification represents notifications sent by the reporter which contain information about the currently running (or soon to be) example group. It is used by formatters to access information about that group.

Examples:

def example_group_started(notification)
  puts "Hey I started #{notification.group.description}"
end
[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 258

GroupNotification = Struct.new(:group)