Upgrade minitest from 5.18.1 to 5.20.0

This commit is contained in:
Nicholas La Roux 2024-01-03 18:19:30 +09:00
parent ab9aeb2622
commit 02467b5ac2
No known key found for this signature in database
GPG key ID: 37E5518D845725EA
31 changed files with 31 additions and 31 deletions

View file

@ -47,7 +47,7 @@ GEM
in_threads (1.6.0)
method_source (1.0.0)
mini_portile2 (2.8.4)
minitest (5.18.1)
minitest (5.20.0)
multi_json (1.15.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)

View file

@ -2,7 +2,7 @@ require 'test_helper'
require 'rack/test'
require 'app'
class AppTest < MiniTest::Spec
class AppTest < Minitest::Spec
include Rack::Test::Methods
MODERN_BROWSER = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0'

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsDocTest < MiniTest::Spec
class DocsDocTest < Minitest::Spec
let :doc do
Class.new Docs::Doc do
self.name = 'name'

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsEntryIndexTest < MiniTest::Spec
class DocsEntryIndexTest < Minitest::Spec
let :entry do
Docs::Entry.new 'name', 'path', 'type'
end

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsFilterTest < MiniTest::Spec
class DocsFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::Filter

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsInstrumentableTest < MiniTest::Spec
class DocsInstrumentableTest < Minitest::Spec
let :extended_class do
Class.new.tap { |klass| klass.send :extend, Docs::Instrumentable }
end

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class ManifestTest < MiniTest::Spec
class ManifestTest < Minitest::Spec
let :doc do
doc = Class.new Docs::Scraper
doc.name = 'TestDoc'

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class DocsEntryTest < MiniTest::Spec
class DocsEntryTest < Minitest::Spec
Entry = Docs::Entry
let :entry do

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class DocsTypeTest < MiniTest::Spec
class DocsTypeTest < Minitest::Spec
Type = Docs::Type
describe ".new" do

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsParserTest < MiniTest::Spec
class DocsParserTest < Minitest::Spec
def parser(content)
Docs::Parser.new(content)
end

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsRequestTest < MiniTest::Spec
class DocsRequestTest < Minitest::Spec
let :url do
'http://example.com'
end

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsRequesterTest < MiniTest::Spec
class DocsRequesterTest < Minitest::Spec
def stub_request(url)
Typhoeus.stub(url).and_return(Typhoeus::Response.new)
end

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsResponseTest < MiniTest::Spec
class DocsResponseTest < Minitest::Spec
let :response do
Typhoeus::Response.new(options).tap do |response|
response.extend Docs::Response

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsScraperTest < MiniTest::Spec
class DocsScraperTest < Minitest::Spec
class Scraper < Docs::Scraper
self.type = 'scraper'
self.base_url = 'http://example.com/'

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class FileScraperTest < MiniTest::Spec
class FileScraperTest < Minitest::Spec
ROOT_PATH = File.expand_path('../../../../../../', __FILE__)
class Scraper < Docs::FileScraper

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class DocsUrlScraperTest < MiniTest::Spec
class DocsUrlScraperTest < Minitest::Spec
class Scraper < Docs::UrlScraper
self.base_url = 'http://example.com'
self.html_filters = Docs::FilterStack.new

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsUrlTest < MiniTest::Spec
class DocsUrlTest < Minitest::Spec
URL = Docs::URL
describe ".new" do

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class ApplyBaseUrlFilterTest < MiniTest::Spec
class ApplyBaseUrlFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::ApplyBaseUrlFilter
self.filter_type = 'html'

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class CleanHtmlFilterTest < MiniTest::Spec
class CleanHtmlFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::CleanHtmlFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class CleanTextFilterTest < MiniTest::Spec
class CleanTextFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::CleanTextFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class ContainerFilterTest < MiniTest::Spec
class ContainerFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::ContainerFilter
self.filter_type = 'html'

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class EntriesFilterTest < MiniTest::Spec
class EntriesFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::EntriesFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class InnerHtmlFilterTest < MiniTest::Spec
class InnerHtmlFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::InnerHtmlFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class InternalUrlsFilterTest < MiniTest::Spec
class InternalUrlsFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::InternalUrlsFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class NormalizePathsFilterTest < MiniTest::Spec
class NormalizePathsFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::NormalizePathsFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class NormalizeUrlsFilterTest < MiniTest::Spec
class NormalizeUrlsFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::NormalizeUrlsFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class ParseCfEmailFilterTest < MiniTest::Spec
class ParseCfEmailFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::ParseCfEmailFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../../test_helper'
require_relative '../../../../../lib/docs'
class TitleFilterTest < MiniTest::Spec
class TitleFilterTest < Minitest::Spec
include FilterTestHelper
self.filter_class = Docs::TitleFilter

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsAbstractStoreTest < MiniTest::Spec
class DocsAbstractStoreTest < Minitest::Spec
InvalidPathError = Docs::AbstractStore::InvalidPathError
LockError = Docs::AbstractStore::LockError

View file

@ -1,7 +1,7 @@
require_relative '../../../test_helper'
require_relative '../../../../lib/docs'
class DocsFileStoreTest < MiniTest::Spec
class DocsFileStoreTest < Minitest::Spec
let :store do
Docs::FileStore.new(tmp_path)
end

View file

@ -18,7 +18,7 @@ end
ActiveSupport::TestCase.test_order = :random
class MiniTest::Spec
class Minitest::Spec
include ActiveSupport::Testing::Assertions
module DSL