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

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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 collapse

Method Summary

Methods inherited from Struct

#as_json

Instance Attribute Details

#groupRSpec::Core::ExampleGroup

the current group

Returns:



256
257
258
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 256

def group
  @group
end