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

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

Instance Method Summary collapse

Instance Method Details

#for(group) ⇒ Object



100
101
102
103
# File 'lib/rspec/core/hooks.rb', line 100

def for(group)
  @group = group
  self
end

#runObject



105
106
107
# File 'lib/rspec/core/hooks.rb', line 105

def run
  shift.run(@group) until empty?
end