-
Notifications
You must be signed in to change notification settings - Fork 277
/
.rubocop-rspec.yml
30 lines (23 loc) · 1005 Bytes
/
.rubocop-rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require:
- rubocop-rspec
RSpec/MultipleExpectations:
Max: 7
# Name your test subject if you need to reference it explicitly. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NamedSubject)
RSpec/NamedSubject:
Enabled: false
# Spec path should end with _spec (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)
# example: meta_tags/view_helper*displayingdescription*_spec.rb.
RSpec/SpecFilePathFormat:
Enabled: false
# The second argument to describe should be the method being tested. '#instance' or '.class'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeMethod)
# example: describe MetaTags::ViewHelper, 'displaying description' do
RSpec/DescribeMethod:
Enabled: false
# Example has too many lines. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleLength)
RSpec/ExampleLength:
Enabled: false
RSpec/VerifiedDoubles:
Enabled: false
RSpec/NoExpectationExample:
AllowedPatterns:
- test_hashes_and_arrays