Class: RSpec::Core::Hooks::GroupHookCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/rspec/core/hooks.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) for(group)

113
114
115
116
# File 'lib/rspec/core/hooks.rb', line 113
def for(group)
  @group = group
  self
end

- (Object) run

118
119
120
# File 'lib/rspec/core/hooks.rb', line 118
def run
  shift.run(@group) until empty?
end