Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Rowe <hello@jonrowe.co.uk>
  • Loading branch information
pirj and JonRowe authored Dec 23, 2020
1 parent 1608444 commit 7e4d095
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions features/subject/one_liner_syntax.feature
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Feature: One-liner syntax

RSpec supports a one-liner syntax for setting an expectation on the
RSpec supports a one-liner syntax, `is_expected`, for setting an expectation on the
`subject`. RSpec will give the examples a doc string that is auto-
generated from the matcher used in the example. This is designed specifically
to help avoid duplication in situations where the doc string and the matcher
used in the example mirror each other exactly. When used excessively, it can
produce documentation output that does not read well or contribute to
understanding the object you are describing.

`is_expected` is a shorthand syntax for `expect(subject)`.
understanding the object you are describing. This syntax is a short hand for `expect(subject)`.

Notes:

Expand Down

0 comments on commit 7e4d095

Please sign in to comment.