Skip to content

Commit 530813e

Browse files
committed
Load less of minitest in the test support file
Allow other projects to load "rubocop/minitest/support" without opting in to "minitest/autorun" and 'minitest/pride'.
1 parent 7633fa5 commit 530813e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Remove "minitest/autorun" and "minitest/pride" requirement from "rubocop/minitest/support". ([@bquorning][])

lib/rubocop/minitest/support.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# Require this file to load code that supports testing using Minitest.
44

55
require 'rubocop'
6-
require 'minitest/autorun'
7-
require 'minitest/pride'
6+
require 'minitest'
87
require_relative 'assert_offense'
98

109
Minitest::Test.include RuboCop::Minitest::AssertOffense

test/test_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
# Require supporting files exposed for testing.
66
require_relative '../lib/rubocop/minitest/support'
7+
require 'minitest/autorun'
8+
require 'minitest/pride'
79
require 'minitest/proveit'
810

911
Minitest::Test.class_eval do

0 commit comments

Comments
 (0)