Skip to content

Commit 18ee154

Browse files
committed
Amend per @benoittgt's code review
1 parent 2bf4a6f commit 18ee154

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ $ bundle exec rspec spec/controllers/accounts_controller_spec.rb
111111

112112
# Run a single example from a spec file (by line number)
113113
$ bundle exec rspec spec/controllers/accounts_controller_spec.rb:8
114+
115+
# See all options for running specs
116+
$ bundle exec rspec --help
114117
```
115118

116119
## RSpec DSL Basics (or, how do I write a spec?)
@@ -234,8 +237,6 @@ or for official Rails API documentation on the given `TestCase` class.
234237
> RSpec Rails provides thoughtfully selected features
235238
> to encourage good testing practices, but there’s no “right” way to do it.
236239
> Ultimately, it’s up to you to decide how your test suite will be composed.
237-
>
238-
> (You may even define custom types, or write specs with no type at all.)
239240
240241
[request]: https://relishapp.com/rspec/rspec-rails/docs/request-specs/request-spec
241242
[feature]: https://www.relishapp.com/rspec/rspec-rails/docs/feature-specs/feature-spec
@@ -253,7 +254,7 @@ or for official Rails API documentation on the given `TestCase` class.
253254

254255
### I’m writing a spec file from scratch. How do I assign it a type?
255256

256-
Simply place the spec in the appropriate folder
257+
Simply place the spec [in the appropriate folder][]
257258
(_e.g.,_ `spec/models/` for model specs)
258259
and RSpec will set its type automatically.
259260

@@ -267,7 +268,7 @@ RSpec.describe User, type: :model do
267268
...
268269
```
269270

270-
[modified the default `rails_helper.rb` configuration]: https://relishapp.com/rspec/rspec-rails/docs/upgrade#file-type-inference-disabled
271+
[in the appropriate folder]: https://relishapp.com/rspec/rspec-rails/docs/directory-structure
271272

272273
### System specs, feature specs, request specs–what’s the difference?
273274

0 commit comments

Comments
 (0)