Commit c817490
committed
Improved documentation for
This PR is improves documentation for `RSpec/ExpectActual`.
For example, if you create a gem by `bundle gem hoge`, the following rspec code will be created.
```ruby
it "does something useful" do
expect(false).to eq(true)
end
```
At first glance, it seems to be autocorrected,
but when both expected and actual values are literal,
no autocorrection is performed.
We'll add this as an explanation for cop.RSpec/ExpectActual
1 parent b6516ba commit c817490
File tree
2 files changed
+4
-0
lines changed- docs/modules/ROOT/pages
- lib/rubocop/cop/rspec
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1483 | 1483 | | |
1484 | 1484 | | |
1485 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
1486 | 1488 | | |
1487 | 1489 | | |
1488 | 1490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments