Skip to content

Commit

Permalink
Add scenario explaining example failures do not affect hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Apr 4, 2020
1 parent dd3b2ab commit 251661c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/hooks/before_and_after_hooks.feature
Expand Up @@ -25,7 +25,8 @@ Feature: `before` and `after` hooks
A bare `before` or `after` hook defaults to the `:example` scope.

`before` and `after` hooks can be defined directly in the example groups they
should run in, or in a global `RSpec.configure` block.
should run in, or in a global `RSpec.configure` block. Note that the status of
the example does not affect the hooks.

**WARNING:** Setting instance variables are not supported in `before(:suite)`.

Expand Down

0 comments on commit 251661c

Please sign in to comment.