|
29 | 29 | end |
30 | 30 |
|
31 | 31 | shared_examples 'an example hook' do |
32 | | - include_examples 'ignored hooks' |
33 | | - include_examples 'detects style', 'before(:each) { foo }', 'each' |
34 | | - include_examples 'detects style', 'before(:example) { foo }', 'example' |
35 | | - include_examples 'detects style', 'before { foo }', 'implicit' |
| 32 | + it_behaves_like 'ignored hooks' |
| 33 | + it_behaves_like 'detects style', 'before(:each) { foo }', 'each' |
| 34 | + it_behaves_like 'detects style', 'before(:example) { foo }', 'example' |
| 35 | + it_behaves_like 'detects style', 'before { foo }', 'implicit' |
36 | 36 | end |
37 | 37 |
|
38 | 38 | context 'when EnforcedStyle is :implicit' do |
|
87 | 87 | RUBY |
88 | 88 | end |
89 | 89 |
|
90 | | - include_examples 'an example hook' |
| 90 | + it_behaves_like 'an example hook' |
91 | 91 |
|
92 | 92 | context 'when Ruby 2.7', :ruby27 do |
93 | 93 | it 'detects :each for hooks' do |
|
172 | 172 | RUBY |
173 | 173 | end |
174 | 174 |
|
175 | | - include_examples 'an example hook' |
| 175 | + it_behaves_like 'an example hook' |
176 | 176 |
|
177 | 177 | context 'when Ruby 2.7', :ruby27 do |
178 | 178 | it 'does not flag :each for hooks' do |
|
257 | 257 | RUBY |
258 | 258 | end |
259 | 259 |
|
260 | | - include_examples 'an example hook' |
| 260 | + it_behaves_like 'an example hook' |
261 | 261 |
|
262 | 262 | context 'when Ruby 2.7', :ruby27 do |
263 | 263 | it 'does not flag :example for hooks' do |
|
0 commit comments