Skip to content

Commit

Permalink
Merge pull request #1787 from G-Rath/regroup-tests
Browse files Browse the repository at this point in the history
test: group minitest "empty" assertions in their own context
  • Loading branch information
pirj authored Jan 25, 2024
2 parents 1c4b411 + bb51c89 commit 869cb0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rubocop/cop/rspec/rails/minitest_assertions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@
expect(a).not_to eq(nil)
RUBY
end
end

context 'with empty assertions' do
it 'registers an offense when using `assert_empty`' do
expect_offense(<<~RUBY)
assert_empty(a)
Expand Down

0 comments on commit 869cb0e

Please sign in to comment.