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



68
69
70
71
# File 'lib/rspec/core/hooks.rb', line 68

def for(group)
  @group = group
  self
end

#runObject



73
74
75
# File 'lib/rspec/core/hooks.rb', line 73

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