Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 7b46ed5

Browse files
authored
Merge pull request #2285 from eugeneius/suite_hook_docs_fix
Fix documentation of restriction on suite hooks
2 parents c1d092d + 24dd89f commit 7b46ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec/core/hooks.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ module Hooks
191191
#
192192
# @note The `:example` and `:context` scopes are also available as
193193
# `:each` and `:all`, respectively. Use whichever you prefer.
194-
# @note The `:scope` alias is only supported for hooks registered on
194+
# @note The `:suite` scope is only supported for hooks registered on
195195
# `RSpec.configuration` since they exist independently of any
196196
# example or example group.
197197
def before(*args, &block)
@@ -265,7 +265,7 @@ def prepend_before(*args, &block)
265265
#
266266
# @note The `:example` and `:context` scopes are also available as
267267
# `:each` and `:all`, respectively. Use whichever you prefer.
268-
# @note The `:scope` alias is only supported for hooks registered on
268+
# @note The `:suite` scope is only supported for hooks registered on
269269
# `RSpec.configuration` since they exist independently of any
270270
# example or example group.
271271
def after(*args, &block)

0 commit comments

Comments
 (0)