类: RSpec::Core::Notifications::GroupNotification

继承
Struct
  • Object
显示全部
定义于
lib/rspec/core/notifications.rb

概述

GroupNotification 代表由报告器发送的通知,其中包含有关当前正在运行(或即将运行)的示例组的信息。格式化程序使用它来访问有关该组的信息。

示例

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

实例属性摘要 折叠

实例属性详情

#groupRSpec::Core::ExampleGroup

当前组

返回值

258
259
260
# File 'lib/rspec/core/notifications.rb', line 258
def group
  @group
end