Class: RSpec::Core::Hooks::GroupHookCollection
- Inherits:
-
Array
- Object
- Array
- RSpec::Core::Hooks::GroupHookCollection
- 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 |
#run ⇒ Object
118 119 120 |
# File 'lib/rspec/core/hooks.rb', line 118 def run shift.run(@group) until empty? end |