Skip to content

Commit

Permalink
Load less of minitest in the test support file
Browse files Browse the repository at this point in the history
Allow other projects to load "rubocop/minitest/support" without opting
in to "minitest/autorun" and 'minitest/pride'.
  • Loading branch information
bquorning committed Jan 28, 2025
1 parent 8f3be2f commit de2bb48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

* Remove "minitest/autorun" and "minitest/pride" requirement from "rubocop/minitest/support". ([@bquorning][])

## 0.36.0 (2024-08-31)

### Bug fixes
Expand Down Expand Up @@ -627,3 +629,4 @@
[@earlopain]: https://github.com/earlopain
[@jaredmoody]: https://github.com/jaredmoody
[@brandoncc]: https://github.com/brandoncc
[@bquorning]: https://github.com/bquorning
3 changes: 1 addition & 2 deletions lib/rubocop/minitest/support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# Require this file to load code that supports testing using Minitest.

require 'rubocop'
require 'minitest/autorun'
require 'minitest/pride'
require 'minitest'
require_relative 'assert_offense'

Minitest::Test.include RuboCop::Minitest::AssertOffense
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

# Require supporting files exposed for testing.
require_relative '../lib/rubocop/minitest/support'
require 'minitest/autorun'
require 'minitest/pride'
require 'minitest/proveit'

Minitest::Test.class_eval do
Expand Down

0 comments on commit de2bb48

Please sign in to comment.