mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Upgrade minitest from 5.18.1 to 5.20.0
This commit is contained in:
parent
ab9aeb2622
commit
02467b5ac2
31 changed files with 31 additions and 31 deletions
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@ end
|
|||
|
||||
ActiveSupport::TestCase.test_order = :random
|
||||
|
||||
class MiniTest::Spec
|
||||
class Minitest::Spec
|
||||
include ActiveSupport::Testing::Assertions
|
||||
|
||||
module DSL
|
||||
|
|
Loading…
Reference in a new issue