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

Commit fecfcca

Browse files
committed
Merge pull request #2061 from mtuchowski/patch-1
Shared examples feature has wrong description.
2 parents bd99647 + ab43b68 commit fecfcca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/example_groups/shared_examples.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Feature: shared examples
3434
end
3535

3636
RSpec.describe SomeClass do
37-
include_example "some example", "parameter1"
38-
include_example "some example", "parameter2"
37+
include_examples "some example", "parameter1"
38+
include_examples "some example", "parameter2"
3939
end
4040
```
4141

@@ -60,7 +60,7 @@ Feature: shared examples
6060

6161
To prevent this kind of subtle error a warning is emitted if you declare multiple
6262
methods with the same name in the same context. Should you get this warning
63-
the simplest solution is to replace `include_example` with `it_behaves_like`, in this
63+
the simplest solution is to replace `include_examples` with `it_behaves_like`, in this
6464
way method overriding is avoided because of the nested context created by `it_behaves_like`
6565

6666
Conventions:

0 commit comments

Comments
 (0)