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

Commit 214434b

Browse files
pirjJonRowe
andauthored
Update lib/rspec/core/pending.rb
Co-authored-by: Jon Rowe <[email protected]>
1 parent 76fde2b commit 214434b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/rspec/core/pending.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ class PendingExampleFixedError < StandardError; end
5353
# end
5454
#
5555
# @note When using `pending` inside an example body using this method
56-
# hooks such as `before(:example) have already be run, this means that
57-
# a failure from the code in the `before` hook will prevent the example
58-
# from being considered as pending, as the example body wouldn't be
59-
# executed. If you need to consider hooks as pending as well you can use
60-
# the pending metadata as an alternative, e.g. `it "does something", pending: "message"`.
56+
# hooks, such as `before(:example)`, have already be run. This means that
57+
# a failure from the code in the `before` hook will prevent the example
58+
# from being considered pending, as the example body would not be
59+
# executed. If you need to consider hooks as pending as well you can use
60+
# the pending metadata as an alternative, e.g.
61+
# `it "does something", pending: "message"`.
6162
def pending(message=nil)
6263
current_example = RSpec.current_example
6364

0 commit comments

Comments
 (0)