mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add "after" hooks in reverse order to match RSpec
This commit is contained in:
parent
edcb5118e6
commit
3dc3b88dbe
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ module Spectator
|
|||
private def apply_hooks(group)
|
||||
@before_all_hooks.each { |hook| group.add_before_all_hook(hook) }
|
||||
@before_each_hooks.each { |hook| group.add_before_each_hook(hook) }
|
||||
@after_all_hooks.each { |hook| group.add_after_all_hook(hook) }
|
||||
@after_each_hooks.each { |hook| group.add_after_each_hook(hook) }
|
||||
@after_all_hooks.each { |hook| group.prepend_after_all_hook(hook) }
|
||||
@after_each_hooks.each { |hook| group.prepend_after_each_hook(hook) }
|
||||
@around_each_hooks.each { |hook| group.add_around_each_hook(hook) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue