Skip to content

Commit

Permalink
Merge pull request #140 from mtasaka/minitest_5_20
Browse files Browse the repository at this point in the history
Test: use recent Minitest style
  • Loading branch information
Fryguy authored Sep 27, 2023
2 parents 81d7bcb + 81f8af6 commit 0c7cab3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/optimist/command_line_error_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test_helper'

module Optimist
class CommandlineErrorTest < ::MiniTest::Test
class CommandlineErrorTest < ::Minitest::Test
def test_class
assert_kind_of Exception, cle("message")
end
Expand Down
2 changes: 1 addition & 1 deletion test/optimist/help_needed_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test_helper'

module Optimist
class HelpNeededTest < ::MiniTest::Test
class HelpNeededTest < ::Minitest::Test
def test_class
assert_kind_of Exception, hn("message")
end
Expand Down
2 changes: 1 addition & 1 deletion test/optimist/parser_educate_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'test_helper'

module Optimist
class ParserEduateTest < ::MiniTest::Test
class ParserEduateTest < ::Minitest::Test
def setup
end

Expand Down
2 changes: 1 addition & 1 deletion test/optimist/parser_opt_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Optimist

class ParserOptTest < ::MiniTest::Test
class ParserOptTest < ::Minitest::Test

private

Expand Down
2 changes: 1 addition & 1 deletion test/optimist/parser_parse_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'test_helper'

module Optimist
class ParserParseTest < ::MiniTest::Test
class ParserParseTest < ::Minitest::Test

# TODO: parse
# resolve_default_short_options!
Expand Down
2 changes: 1 addition & 1 deletion test/optimist/parser_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Optimist

class ParserTest < ::MiniTest::Test
class ParserTest < ::Minitest::Test
def setup
@p = Parser.new
end
Expand Down
2 changes: 1 addition & 1 deletion test/optimist/version_needed_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test_helper'

module Optimist
class VersionNeededTest < ::MiniTest::Test
class VersionNeededTest < ::Minitest::Test
def test_class
assert_kind_of Exception, vn("message")
end
Expand Down
2 changes: 1 addition & 1 deletion test/optimist_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'test_helper'

class OptimistTest < MiniTest::Test
class OptimistTest < Minitest::Test
def setup
Optimist.send(:instance_variable_set, "@last_parser", nil)
end
Expand Down

0 comments on commit 0c7cab3

Please sign in to comment.