Skip to content

Commit 63e512b

Browse files
authored
Merge pull request #1787 from G-Rath/regroup-tests
test: group minitest "empty" assertions in their own context
2 parents 9fd6d66 + 9171b60 commit 63e512b

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
@@ -424,7 +424,9 @@
424424
expect(a).not_to eq(nil)
425425
RUBY
426426
end
427+
end
427428

429+
context 'with empty assertions' do
428430
it 'registers an offense when using `assert_empty`' do
429431
expect_offense(<<~RUBY)
430432
assert_empty(a)

0 commit comments

Comments
 (0)