File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 92
92
context 'when EnforcedStyle is :each' do
93
93
let ( :enforced_style ) { :each }
94
94
95
- it 'detects :each for hooks' do
95
+ it 'does not flag :each for hooks' do
96
96
expect_no_offenses ( <<-RUBY )
97
97
before(:each) { true }
98
98
after(:each) { true }
132
132
context 'when EnforcedStyle is :example' do
133
133
let ( :enforced_style ) { :example }
134
134
135
- it 'detects :example for hooks' do
135
+ it 'does not flag :example for hooks' do
136
136
expect_no_offenses ( <<-RUBY )
137
137
before(:example) { true }
138
138
after(:example) { true }
154
154
RUBY
155
155
end
156
156
157
- it 'does not flag hooks without default scopes' do
157
+ it 'detects hooks without default scopes' do
158
158
expect_offense ( <<-RUBY )
159
159
before { true }
160
160
^^^^^^ Use `:example` for RSpec hooks.
You can’t perform that action at this time.
0 commit comments