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



113
114
115
116
# File 'lib/rspec/core/hooks.rb', line 113

def for(group)
  @group = group
  self
end

#runObject



118
119
120
# File 'lib/rspec/core/hooks.rb', line 118

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