-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrspec.yml
52 lines (43 loc) · 1.32 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require: rubocop-rspec
inherit_from:
- capybara.yml
# Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
#
# We should avoid cops that are based on heuristics, since
# it's not clear what action to take to fix an issue.
RSpec/ExampleLength:
Enabled: false
# We should avoid cops that are based on heuristics, since
# it's not clear what action to take to fix an issue.
RSpec/MultipleMemoizedHelpers:
Enabled: false
# We have common cases, such as rake tasks, where we do not
# use a class to the describe the test.
RSpec/DescribeClass:
Enabled: false
# We accept multiple expectations (within reason), preferring
# them to running mulitple similar tests.
RSpec/MultipleExpectations:
Enabled: false
# Part of the GOV.UK feature style involves instance variables.
RSpec/InstanceVariable:
Exclude:
- 'spec/features/**/*.rb'
# In GOV.UK we quite often test that a class received a method.
RSpec/MessageSpies:
Enabled: false
# Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
#
# We should avoid cops that are based on heuristics, since
# it's not clear what action to take to fix an issue.
RSpec/NestedGroups:
Enabled: false
# Nested contexts make more sense with "and" or "but", since
# they are a refinement of an outer context.
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- and
- but