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

Commit

Permalink
Merge pull request #3089 from pda/fix-typo-in-around-context-warning
Browse files Browse the repository at this point in the history
Fix minor typo in `around(:example)` warning (unbalanced backtick)
  • Loading branch information
pirj authored and JonRowe committed Jun 20, 2024
1 parent 12a08bf commit 197ed77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def register(prepend_or_append, position, *args, &block)
# TODO: consider making this an error in RSpec 4. For SemVer reasons,
# we are only warning in RSpec 3.
RSpec.warn_with "WARNING: `around(:context)` hooks are not supported and " \
"behave like `around(:example)."
"behave like `around(:example)`."
end

hook = HOOK_TYPES[position][scope].new(block, options)
Expand Down

0 comments on commit 197ed77

Please sign in to comment.