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

Commit 302bfba

Browse files
committed
Clarify what an example is.
[ci skip]
1 parent 8112643 commit 302bfba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ RSpec has two scopes:
176176
loaded. The block is evaluated in the context of a subclass of
177177
`RSpec::Core::ExampleGroup`, or a subclass of the parent example group
178178
when you're nesting them.
179-
* **Example**: Examples, and any other blocks with per-example semantics
180-
(such as a `before(:example)` hook), are evaluated in the context of
179+
* **Example**: Examples -- typically defined by an `it` block -- and any other
180+
blocks with per-example semantics -- such as a `before(:example)` hook -- are
181+
evaluated in the context of
181182
an _instance_ of the example group class to which the example belongs.
182183
Examples are _not_ executed when the spec file is loaded; instead,
183184
RSpec waits to run any examples until all spec files have been loaded,

0 commit comments

Comments
 (0)