Skip to content

Commit 8d8c728

Browse files
committed
style: prefer Minitest to MiniTest
since Minitest 5.19 doesn't load it by default (cherry picked from commit a29042b)
1 parent d1c62de commit 8d8c728

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/ISSUE_TEMPLATE/1-bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here's an example of how you might structure such a script:
3232
require 'nokogiri'
3333
require 'minitest/autorun'
3434
35-
class Test < MiniTest::Spec
35+
class Test < Minitest::Spec
3636
describe "Node#css" do
3737
it "should find a div using chained classes" do
3838
html = <<~HEREDOC

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Note that `rake test` does not compile the native extension, and this is intenti
124124
bundle exec rake compile test
125125
```
126126

127-
To run a focused test, use MiniTest's `TESTOPTS`:
127+
To run a focused test, use Minitest's `TESTOPTS`:
128128

129129
``` sh
130130
bundle exec rake compile test TESTOPTS="-n/test_last_element_child/"

test/helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class TestBenchmark < Minitest::BenchSpec
128128
end
129129

130130
# rubocop:disable Style/ClassVars
131-
class TestCase < MiniTest::Spec
131+
class TestCase < Minitest::Spec
132132
include TestBase
133133

134134
COMPACT_EVERY = 20
@@ -272,7 +272,7 @@ def assert_not_send(send_ary, m = nil)
272272
def pending(msg)
273273
begin
274274
yield
275-
rescue MiniTest::Assertion
275+
rescue Minitest::Assertion
276276
skip("pending #{msg} [#{caller(2..2).first}]")
277277
end
278278
flunk("pending test unexpectedly passed: #{msg} [#{caller(1..1).first}]")

0 commit comments

Comments
 (0)