File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
spec/rubocop/cop/factory_bot Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 201
201
end
202
202
203
203
%w[ && || ] . each do |operator |
204
- # FIXME: `undefined method `[]' for nil` occurs Prism 0.24.0.
205
- # It has been resolved in the development line.
206
- # This will be resolved in Prism > 0.24.0 and higher releases.
207
- context "with #{ operator } " , broken_on : :prism do
204
+ context "with #{ operator } " do
208
205
it 'does not flag the call' do
209
206
expect_no_offenses ( <<~RUBY )
210
207
can_create_user? #{ operator } create(:user)
213
210
end
214
211
end
215
212
216
- # FIXME: `undefined method `[]' for nil` occurs Prism 0.24.0.
217
- # It has been resolved in the development line.
218
- # This will be resolved in Prism > 0.24.0 and higher releases.
219
- context 'with ternary operator' , broken_on : :prism do
213
+ context 'with ternary operator' do
220
214
it 'does not flag the call' do
221
215
expect_no_offenses ( <<~RUBY )
222
216
can_create_user? ? create(:user) : nil
You can’t perform that action at this time.
0 commit comments