Skip to content

Commit

Permalink
Fix compatibility with newer minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Nov 8, 2023
1 parent c771fd4 commit c1e71bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/test_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'minitest/autorun'
require 'tmpdir'

class StackProf::MiddlewareTest < MiniTest::Test
class StackProf::MiddlewareTest < Minitest::Test

def test_path_default
StackProf::Middleware.new(Object.new)
Expand Down
4 changes: 2 additions & 2 deletions test/test_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'stackprof'
require 'minitest/autorun'

class ReportDumpTest < MiniTest::Test
class ReportDumpTest < Minitest::Test
require 'stringio'

def test_dump_to_stdout
Expand Down Expand Up @@ -33,7 +33,7 @@ def assert_dump(expected, marshal_data)
end
end

class ReportReadTest < MiniTest::Test
class ReportReadTest < Minitest::Test
require 'pathname'

def test_from_file_read_json
Expand Down
2 changes: 1 addition & 1 deletion test/test_stackprof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'tempfile'
require 'pathname'

class StackProfTest < MiniTest::Test
class StackProfTest < Minitest::Test
def setup
Object.new # warm some caches to avoid flakiness
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_truffleruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'minitest/autorun'

if RUBY_ENGINE == 'truffleruby'
class StackProfTruffleRubyTest < MiniTest::Test
class StackProfTruffleRubyTest < Minitest::Test
def test_error
error = assert_raises RuntimeError do
StackProf.run(mode: :cpu) do
Expand Down

0 comments on commit c1e71bd

Please sign in to comment.