1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Disable RSpec/NoExpectationExample

As discussed below issue, there are many cases of false positives,
and some exsamples are intentionally no expectation.

https://togithub.com/rubocop/rubocop-rspec/issues/1385

```
spec/selector_spec.rb:120:27: C: RSpec/Capybara/SpecificMatcher: Prefer have_no_field over have_no_css.
        expect(string).to have_no_css('input[type="hidden"]')
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
This commit is contained in:
ydah 2022-09-23 07:32:11 +09:00
parent 6171a8dbfb
commit e07b2bd712

View file

@ -166,6 +166,9 @@ RSpec/ContextWording:
RSpec/NestedGroups:
Enabled: false
RSpec/NoExpectationExample:
Enabled: false
RSpec/DescribeClass:
Enabled: false