rubocop-rspec 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/config/default.yml +15 -1
  4. data/lib/rubocop-rspec.rb +2 -0
  5. data/lib/rubocop/cop/rspec/any_instance.rb +7 -10
  6. data/lib/rubocop/cop/rspec/around_block.rb +19 -30
  7. data/lib/rubocop/cop/rspec/be_eql.rb +3 -7
  8. data/lib/rubocop/cop/rspec/before_after_all.rb +10 -16
  9. data/lib/rubocop/cop/rspec/cop.rb +5 -1
  10. data/lib/rubocop/cop/rspec/describe_class.rb +8 -8
  11. data/lib/rubocop/cop/rspec/describe_method.rb +6 -5
  12. data/lib/rubocop/cop/rspec/described_class.rb +2 -2
  13. data/lib/rubocop/cop/rspec/example_length.rb +5 -8
  14. data/lib/rubocop/cop/rspec/example_wording.rb +57 -23
  15. data/lib/rubocop/cop/rspec/expect_actual.rb +3 -9
  16. data/lib/rubocop/cop/rspec/expect_output.rb +2 -2
  17. data/lib/rubocop/cop/rspec/file_path.rb +30 -29
  18. data/lib/rubocop/cop/rspec/hook_argument.rb +1 -1
  19. data/lib/rubocop/cop/rspec/instance_spy.rb +12 -12
  20. data/lib/rubocop/cop/rspec/instance_variable.rb +2 -2
  21. data/lib/rubocop/cop/rspec/it_behaves_like.rb +47 -0
  22. data/lib/rubocop/cop/rspec/leading_subject.rb +1 -1
  23. data/lib/rubocop/cop/rspec/message_chain.rb +7 -4
  24. data/lib/rubocop/cop/rspec/message_spies.rb +6 -5
  25. data/lib/rubocop/cop/rspec/multiple_describes.rb +1 -1
  26. data/lib/rubocop/cop/rspec/multiple_expectations.rb +38 -6
  27. data/lib/rubocop/cop/rspec/named_subject.rb +2 -2
  28. data/lib/rubocop/cop/rspec/nested_groups.rb +10 -6
  29. data/lib/rubocop/cop/rspec/not_to_not.rb +12 -23
  30. data/lib/rubocop/cop/rspec/shared_context.rb +107 -0
  31. data/lib/rubocop/cop/rspec/single_argument_message_chain.rb +16 -23
  32. data/lib/rubocop/cop/rspec/subject_stub.rb +4 -4
  33. data/lib/rubocop/cop/rspec/verified_doubles.rb +4 -3
  34. data/lib/rubocop/rspec/example_group.rb +1 -1
  35. data/lib/rubocop/rspec/language.rb +25 -7
  36. data/lib/rubocop/rspec/version.rb +1 -1
  37. data/spec/expect_violation/expectation_spec.rb +16 -16
  38. data/spec/project/changelog_spec.rb +1 -1
  39. data/spec/project/default_config_spec.rb +1 -1
  40. data/spec/project/project_requires_spec.rb +1 -1
  41. data/spec/rubocop/cop/rspec/any_instance_spec.rb +4 -4
  42. data/spec/rubocop/cop/rspec/around_block_spec.rb +115 -26
  43. data/spec/rubocop/cop/rspec/be_eql_spec.rb +9 -9
  44. data/spec/rubocop/cop/rspec/before_after_all_spec.rb +38 -80
  45. data/spec/rubocop/cop/rspec/describe_class_spec.rb +1 -1
  46. data/spec/rubocop/cop/rspec/describe_method_spec.rb +2 -2
  47. data/spec/rubocop/cop/rspec/described_class_spec.rb +13 -13
  48. data/spec/rubocop/cop/rspec/empty_example_group_spec.rb +1 -1
  49. data/spec/rubocop/cop/rspec/example_length_spec.rb +3 -32
  50. data/spec/rubocop/cop/rspec/example_wording_spec.rb +21 -2
  51. data/spec/rubocop/cop/rspec/expect_actual_spec.rb +33 -18
  52. data/spec/rubocop/cop/rspec/expect_output_spec.rb +3 -3
  53. data/spec/rubocop/cop/rspec/file_path_spec.rb +119 -170
  54. data/spec/rubocop/cop/rspec/focus_spec.rb +1 -1
  55. data/spec/rubocop/cop/rspec/hook_argument_spec.rb +1 -3
  56. data/spec/rubocop/cop/rspec/implicit_expect_spec.rb +1 -1
  57. data/spec/rubocop/cop/rspec/instance_spy_spec.rb +11 -11
  58. data/spec/rubocop/cop/rspec/instance_variable_spec.rb +4 -4
  59. data/spec/rubocop/cop/rspec/it_behaves_like_spec.rb +51 -0
  60. data/spec/rubocop/cop/rspec/leading_subject_spec.rb +1 -1
  61. data/spec/rubocop/cop/rspec/let_setup_spec.rb +1 -1
  62. data/spec/rubocop/cop/rspec/message_chain_spec.rb +3 -3
  63. data/spec/rubocop/cop/rspec/message_expectation_spec.rb +5 -23
  64. data/spec/rubocop/cop/rspec/message_spies_spec.rb +9 -23
  65. data/spec/rubocop/cop/rspec/multiple_describes_spec.rb +1 -1
  66. data/spec/rubocop/cop/rspec/multiple_expectations_spec.rb +66 -3
  67. data/spec/rubocop/cop/rspec/nested_groups_spec.rb +4 -4
  68. data/spec/rubocop/cop/rspec/not_to_not_spec.rb +3 -3
  69. data/spec/rubocop/cop/rspec/repeated_description_spec.rb +1 -1
  70. data/spec/rubocop/cop/rspec/repeated_example_spec.rb +1 -1
  71. data/spec/rubocop/cop/rspec/scattered_setup_spec.rb +1 -1
  72. data/spec/rubocop/cop/rspec/shared_context_spec.rb +142 -0
  73. data/spec/rubocop/cop/rspec/single_argument_message_chain_spec.rb +5 -5
  74. data/spec/rubocop/cop/rspec/subject_stub_spec.rb +1 -1
  75. data/spec/rubocop/cop/rspec/verified_doubles_spec.rb +2 -2
  76. data/spec/rubocop/rspec/config_formatter_spec.rb +12 -12
  77. data/spec/rubocop/rspec/description_extractor_spec.rb +23 -23
  78. data/spec/rubocop/rspec/example_group_spec.rb +11 -11
  79. data/spec/rubocop/rspec/example_spec.rb +1 -1
  80. data/spec/rubocop/rspec/language/selector_set_spec.rb +1 -1
  81. data/spec/rubocop/rspec/util/one_spec.rb +1 -1
  82. data/spec/rubocop/rspec/wording_spec.rb +1 -1
  83. data/spec/shared/detects_style_behavior.rb +3 -4
  84. data/spec/spec_helper.rb +10 -0
  85. metadata +8 -2
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- describe RuboCop::Cop::RSpec::RepeatedDescription do
3
+ RSpec.describe RuboCop::Cop::RSpec::RepeatedDescription do
4
4
  subject(:cop) { described_class.new }
5
5
 
6
6
  it 'registers an offense for repeated descriptions' do
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- describe RuboCop::Cop::RSpec::RepeatedExample do
3
+ RSpec.describe RuboCop::Cop::RSpec::RepeatedExample do
4
4
  subject(:cop) { described_class.new }
5
5
 
6
6
  it 'registers an offense for repeated example' do
@@ -1,4 +1,4 @@
1
- describe RuboCop::Cop::RSpec::ScatteredSetup do
1
+ RSpec.describe RuboCop::Cop::RSpec::ScatteredSetup do
2
2
  subject(:cop) { described_class.new }
3
3
 
4
4
  it 'flags multiple hooks in the same example group' do
@@ -0,0 +1,142 @@
1
+ RSpec.describe RuboCop::Cop::RSpec::SharedContext do
2
+ subject(:cop) { described_class.new }
3
+
4
+ context 'shared_context' do
5
+ it 'does not register an offense for empty contexts' do
6
+ expect_no_violations(<<-RUBY)
7
+ shared_context 'empty' do
8
+ end
9
+ RUBY
10
+ end
11
+
12
+ it 'registers an offense for shared_context with only examples' do
13
+ expect_violation(<<-RUBY)
14
+ shared_context 'foo' do
15
+ ^^^^^^^^^^^^^^^^^^^^ Use `shared_examples` when you don't define context.
16
+ it 'performs actions' do
17
+ end
18
+ end
19
+ RUBY
20
+ end
21
+
22
+ it 'does not register an offense for `shared_context` with let' do
23
+ expect_no_violations(<<-RUBY)
24
+ shared_context 'foo' do
25
+ let(:foo) { :bar }
26
+
27
+ it 'performs actions' do
28
+ end
29
+ end
30
+ RUBY
31
+ end
32
+
33
+ it 'does not register an offense for `shared_context` with subject' do
34
+ expect_no_violations(<<-RUBY)
35
+ shared_context 'foo' do
36
+ subject(:foo) { :bar }
37
+
38
+ it 'performs actions' do
39
+ end
40
+ end
41
+ RUBY
42
+ end
43
+
44
+ it 'does not register an offense for `shared_context` with before' do
45
+ expect_no_violations(<<-RUBY)
46
+ shared_context 'foo' do
47
+ before do
48
+ something
49
+ end
50
+
51
+ it 'performs actions' do
52
+ end
53
+ end
54
+ RUBY
55
+ end
56
+ end
57
+
58
+ context 'shared_examples' do
59
+ it 'does not register an offense for empty examples' do
60
+ expect_no_violations(<<-RUBY)
61
+ shared_examples 'empty' do
62
+ end
63
+ RUBY
64
+ end
65
+
66
+ it 'registers an offense for shared_examples with only let' do
67
+ expect_violation(<<-RUBY)
68
+ shared_examples 'foo' do
69
+ ^^^^^^^^^^^^^^^^^^^^^ Use `shared_context` when you don't define examples.
70
+ let(:foo) { :bar }
71
+ end
72
+ RUBY
73
+ end
74
+
75
+ it 'registers an offense for shared_examples with only subject' do
76
+ expect_violation(<<-RUBY)
77
+ shared_examples 'foo' do
78
+ ^^^^^^^^^^^^^^^^^^^^^ Use `shared_context` when you don't define examples.
79
+ subject(:foo) { :bar }
80
+ end
81
+ RUBY
82
+ end
83
+
84
+ it 'registers an offense for shared_examples with only hooks' do
85
+ expect_violation(<<-RUBY)
86
+ shared_examples 'foo' do
87
+ ^^^^^^^^^^^^^^^^^^^^^ Use `shared_context` when you don't define examples.
88
+ before do
89
+ foo
90
+ end
91
+ end
92
+ RUBY
93
+ end
94
+
95
+ it 'does not register an offense for `shared_examples` with it' do
96
+ expect_no_violations(<<-RUBY)
97
+ shared_examples 'foo' do
98
+ subject(:foo) { 'foo' }
99
+ let(:bar) { :baz }
100
+ before { initialize }
101
+
102
+ it 'works' do
103
+ end
104
+ end
105
+ RUBY
106
+ end
107
+ end
108
+
109
+ bad_shared_context = <<-RUBY
110
+ shared_context 'foo' do
111
+ it 'performs actions' do
112
+ end
113
+ end
114
+ RUBY
115
+
116
+ good_shared_context = <<-RUBY
117
+ shared_examples 'foo' do
118
+ it 'performs actions' do
119
+ end
120
+ end
121
+ RUBY
122
+
123
+ include_examples 'autocorrect',
124
+ bad_shared_context,
125
+ good_shared_context
126
+
127
+ bad_shared_examples = <<-RUBY
128
+ shared_examples 'foo' do
129
+ let(:foo) { :bar }
130
+ end
131
+ RUBY
132
+
133
+ good_shared_examples = <<-RUBY
134
+ shared_context 'foo' do
135
+ let(:foo) { :bar }
136
+ end
137
+ RUBY
138
+
139
+ include_examples 'autocorrect',
140
+ bad_shared_examples,
141
+ good_shared_examples
142
+ end
@@ -1,4 +1,4 @@
1
- describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
1
+ RSpec.describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
2
2
  subject(:cop) { described_class.new }
3
3
 
4
4
  describe 'receive_message_chain' do
@@ -6,7 +6,7 @@ describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
6
6
  expect_violation(<<-RUBY)
7
7
  before do
8
8
  allow(foo).to receive_message_chain(:one) { :two }
9
- ^^^^^^^^^^^^^^^^^^^^^ Use `receive` instead of calling `receive_message_chain` with a single argument
9
+ ^^^^^^^^^^^^^^^^^^^^^ Use `receive` instead of calling `receive_message_chain` with a single argument.
10
10
  end
11
11
  RUBY
12
12
  end
@@ -29,7 +29,7 @@ describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
29
29
  expect_violation(<<-RUBY)
30
30
  before do
31
31
  allow(foo).to receive_message_chain("one") { :two }
32
- ^^^^^^^^^^^^^^^^^^^^^ Use `receive` instead of calling `receive_message_chain` with a single argument
32
+ ^^^^^^^^^^^^^^^^^^^^^ Use `receive` instead of calling `receive_message_chain` with a single argument.
33
33
  end
34
34
  RUBY
35
35
  end
@@ -54,7 +54,7 @@ describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
54
54
  expect_violation(<<-RUBY)
55
55
  before do
56
56
  foo.stub_chain(:one) { :two }
57
- ^^^^^^^^^^ Use `stub` instead of calling `stub_chain` with a single argument
57
+ ^^^^^^^^^^ Use `stub` instead of calling `stub_chain` with a single argument.
58
58
  end
59
59
  RUBY
60
60
  end
@@ -77,7 +77,7 @@ describe RuboCop::Cop::RSpec::SingleArgumentMessageChain do
77
77
  expect_violation(<<-RUBY)
78
78
  before do
79
79
  foo.stub_chain("one") { :two }
80
- ^^^^^^^^^^ Use `stub` instead of calling `stub_chain` with a single argument
80
+ ^^^^^^^^^^ Use `stub` instead of calling `stub_chain` with a single argument.
81
81
  end
82
82
  RUBY
83
83
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- describe RuboCop::Cop::RSpec::SubjectStub do
3
+ RSpec.describe RuboCop::Cop::RSpec::SubjectStub do
4
4
  subject(:cop) { described_class.new }
5
5
 
6
6
  it 'complains when subject is stubbed' do
@@ -1,4 +1,4 @@
1
- describe RuboCop::Cop::RSpec::VerifiedDoubles, :config do
1
+ RSpec.describe RuboCop::Cop::RSpec::VerifiedDoubles, :config do
2
2
  subject(:cop) { described_class.new(config) }
3
3
 
4
4
  it 'finds a `double` instead of an `instance_double`' do
@@ -11,7 +11,7 @@ describe RuboCop::Cop::RSpec::VerifiedDoubles, :config do
11
11
  end
12
12
 
13
13
  context 'when configuration does not specify IgnoreSymbolicNames' do
14
- let(:cop_config) { Hash.new }
14
+ let(:cop_config) { {} }
15
15
 
16
16
  it 'find doubles whose name is a symbol' do
17
17
  expect_violation(<<-RUBY)
@@ -31,18 +31,18 @@ RSpec.describe RuboCop::RSpec::ConfigFormatter do
31
31
  formatter = described_class.new(config, descriptions)
32
32
 
33
33
  expect(formatter.dump).to eql(<<-YAML.gsub(/^\s+\|/, ''))
34
- |---
35
- |AllCops:
36
- | Setting: fourty two
37
- |
38
- |RSpec/Foo:
39
- | Config: 2
40
- | Enabled: true
41
- | Description: Blah
42
- |
43
- |RSpec/Bar:
44
- | Enabled: true
45
- | Description: Wow
34
+ |---
35
+ |AllCops:
36
+ | Setting: fourty two
37
+ |
38
+ |RSpec/Foo:
39
+ | Config: 2
40
+ | Enabled: true
41
+ | Description: Blah
42
+ |
43
+ |RSpec/Bar:
44
+ | Enabled: true
45
+ | Description: Wow
46
46
  YAML
47
47
  end
48
48
  end
@@ -5,32 +5,32 @@ require 'rubocop/rspec/description_extractor'
5
5
  RSpec.describe RuboCop::RSpec::DescriptionExtractor do
6
6
  let(:yardocs) do
7
7
  YARD.parse_string(<<-RUBY)
8
- # This is not a cop
9
- class RuboCop::Cop::Mixin::Sneaky
10
- end
11
-
12
- # This is not a concrete cop
13
- #
14
- # @abstract
15
- class RuboCop::Cop::RSpec::Cop
16
- end
17
-
18
- # Checks foo
19
- #
20
- # Some description
21
- #
22
- # @note only works with foo
23
- class RuboCop::Cop::RSpec::Foo
24
- # Hello
25
- def bar
8
+ # This is not a cop
9
+ class RuboCop::Cop::Mixin::Sneaky
26
10
  end
27
- end
28
11
 
29
- class RuboCop::Cop::RSpec::Undocumented
30
- # Hello
31
- def bar
12
+ # This is not a concrete cop
13
+ #
14
+ # @abstract
15
+ class RuboCop::Cop::RSpec::Cop
16
+ end
17
+
18
+ # Checks foo
19
+ #
20
+ # Some description
21
+ #
22
+ # @note only works with foo
23
+ class RuboCop::Cop::RSpec::Foo
24
+ # Hello
25
+ def bar
26
+ end
27
+ end
28
+
29
+ class RuboCop::Cop::RSpec::Undocumented
30
+ # Hello
31
+ def bar
32
+ end
32
33
  end
33
- end
34
34
  RUBY
35
35
 
36
36
  YARD::Registry.all
@@ -7,21 +7,21 @@ RSpec.describe RuboCop::RSpec::ExampleGroup do
7
7
 
8
8
  let(:source) do
9
9
  <<-RUBY
10
- RSpec.describe Foo do
11
- it 'does x' do
12
- x
13
- end
10
+ RSpec.describe Foo do
11
+ it 'does x' do
12
+ x
13
+ end
14
14
 
15
- it 'does y' do
16
- y
17
- end
15
+ it 'does y' do
16
+ y
17
+ end
18
18
 
19
- context 'nested' do
20
- it 'does z' do
21
- z
19
+ context 'nested' do
20
+ it 'does z' do
21
+ z
22
+ end
22
23
  end
23
24
  end
24
- end
25
25
  RUBY
26
26
  end
27
27
 
@@ -37,7 +37,7 @@ RSpec.describe RuboCop::RSpec::Example do
37
37
  end
38
38
 
39
39
  context 'value object semantics' do
40
- it 'compares by value' do # rubocop:disable RSpec/MultipleExpectations
40
+ it 'compares by value' do
41
41
  aggregate_failures 'equality semantics' do
42
42
  expect(example('it("foo")')).to eq(example('it("foo")'))
43
43
  expect(example('it("foo")')).not_to eq(example('it("bar")'))
@@ -1,4 +1,4 @@
1
- describe RuboCop::RSpec::Language::SelectorSet do
1
+ RSpec.describe RuboCop::RSpec::Language::SelectorSet do
2
2
  subject(:selector_set) { described_class.new(%i(foo bar)) }
3
3
 
4
4
  it 'composes sets' do
@@ -1,4 +1,4 @@
1
- describe RuboCop::RSpec::Util, '.one' do
1
+ RSpec.describe RuboCop::RSpec::Util, '.one' do
2
2
  let(:first) { instance_double(Object) }
3
3
  let(:array) { instance_double(Array, one?: true, first: first) }
4
4
  let(:client) { Class.new.extend(described_class) }
@@ -1,4 +1,4 @@
1
- describe RuboCop::RSpec::Wording do
1
+ RSpec.describe RuboCop::RSpec::Wording do
2
2
  let(:replacements) do
3
3
  { 'have' => 'has', 'not' => 'does not' }
4
4
  end
@@ -1,8 +1,7 @@
1
- RSpec.shared_examples 'detects style' do |source, detected_style|
1
+ RSpec.shared_examples 'detects style' do |source, style, filename: 'x_spec.rb'|
2
2
  it 'generates a todo based on the detected style' do
3
- inspect_source(cop, source, 'foo_spec.rb')
3
+ inspect_source(cop, source, filename)
4
4
 
5
- expect(cop.config_to_allow_offenses)
6
- .to eq('EnforcedStyle' => detected_style)
5
+ expect(cop.config_to_allow_offenses).to eq('EnforcedStyle' => style)
7
6
  end
8
7
  end
data/spec/spec_helper.rb CHANGED
@@ -25,6 +25,16 @@ RSpec.configure do |config|
25
25
  mocks.syntax = :expect # Disable `should_receive` and `stub`
26
26
  end
27
27
 
28
+ # Forbid RSpec from monkey patching any of our objects
29
+ config.disable_monkey_patching!
30
+
31
+ # We should address configuration warnings when we upgrade
32
+ config.raise_errors_for_deprecations!
33
+
34
+ # RSpec gives helpful warnings when you are doing something wrong.
35
+ # We should take their advice!
36
+ config.raise_on_warning = true
37
+
28
38
  config.include(ExpectViolation)
29
39
  end
30
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Backus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-22 00:00:00.000000000 Z
13
+ date: 2017-03-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -163,6 +163,7 @@ files:
163
163
  - lib/rubocop/cop/rspec/implicit_expect.rb
164
164
  - lib/rubocop/cop/rspec/instance_spy.rb
165
165
  - lib/rubocop/cop/rspec/instance_variable.rb
166
+ - lib/rubocop/cop/rspec/it_behaves_like.rb
166
167
  - lib/rubocop/cop/rspec/leading_subject.rb
167
168
  - lib/rubocop/cop/rspec/let_setup.rb
168
169
  - lib/rubocop/cop/rspec/message_chain.rb
@@ -176,6 +177,7 @@ files:
176
177
  - lib/rubocop/cop/rspec/repeated_description.rb
177
178
  - lib/rubocop/cop/rspec/repeated_example.rb
178
179
  - lib/rubocop/cop/rspec/scattered_setup.rb
180
+ - lib/rubocop/cop/rspec/shared_context.rb
179
181
  - lib/rubocop/cop/rspec/single_argument_message_chain.rb
180
182
  - lib/rubocop/cop/rspec/subject_stub.rb
181
183
  - lib/rubocop/cop/rspec/verified_doubles.rb
@@ -217,6 +219,7 @@ files:
217
219
  - spec/rubocop/cop/rspec/implicit_expect_spec.rb
218
220
  - spec/rubocop/cop/rspec/instance_spy_spec.rb
219
221
  - spec/rubocop/cop/rspec/instance_variable_spec.rb
222
+ - spec/rubocop/cop/rspec/it_behaves_like_spec.rb
220
223
  - spec/rubocop/cop/rspec/leading_subject_spec.rb
221
224
  - spec/rubocop/cop/rspec/let_setup_spec.rb
222
225
  - spec/rubocop/cop/rspec/message_chain_spec.rb
@@ -230,6 +233,7 @@ files:
230
233
  - spec/rubocop/cop/rspec/repeated_description_spec.rb
231
234
  - spec/rubocop/cop/rspec/repeated_example_spec.rb
232
235
  - spec/rubocop/cop/rspec/scattered_setup_spec.rb
236
+ - spec/rubocop/cop/rspec/shared_context_spec.rb
233
237
  - spec/rubocop/cop/rspec/single_argument_message_chain_spec.rb
234
238
  - spec/rubocop/cop/rspec/subject_stub_spec.rb
235
239
  - spec/rubocop/cop/rspec/verified_doubles_spec.rb
@@ -293,6 +297,7 @@ test_files:
293
297
  - spec/rubocop/cop/rspec/implicit_expect_spec.rb
294
298
  - spec/rubocop/cop/rspec/instance_spy_spec.rb
295
299
  - spec/rubocop/cop/rspec/instance_variable_spec.rb
300
+ - spec/rubocop/cop/rspec/it_behaves_like_spec.rb
296
301
  - spec/rubocop/cop/rspec/leading_subject_spec.rb
297
302
  - spec/rubocop/cop/rspec/let_setup_spec.rb
298
303
  - spec/rubocop/cop/rspec/message_chain_spec.rb
@@ -306,6 +311,7 @@ test_files:
306
311
  - spec/rubocop/cop/rspec/repeated_description_spec.rb
307
312
  - spec/rubocop/cop/rspec/repeated_example_spec.rb
308
313
  - spec/rubocop/cop/rspec/scattered_setup_spec.rb
314
+ - spec/rubocop/cop/rspec/shared_context_spec.rb
309
315
  - spec/rubocop/cop/rspec/single_argument_message_chain_spec.rb
310
316
  - spec/rubocop/cop/rspec/subject_stub_spec.rb
311
317
  - spec/rubocop/cop/rspec/verified_doubles_spec.rb