Skip to content

Commit 9171b60

Browse files
committed
test: group minitest "empty" assertions in their own context
1 parent bab0427 commit 9171b60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/rubocop/cop/rspec_rails/minitest_assertions_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@
407407
expect(a).not_to eq(nil)
408408
RUBY
409409
end
410+
end
410411

412+
context 'with empty assertions' do
411413
it 'registers an offense when using `assert_empty`' do
412414
expect_offense(<<~RUBY)
413415
assert_empty(a)

0 commit comments

Comments
 (0)