Singularize the fetchers directory name

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-11-22 09:57:28 -05:00
parent 7807c3fa01
commit d9f55bf85c
12 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
require "uri"
require "inspec/fetcher"
require "inspec/fetchers/url"
require "inspec/fetcher/url"
# InSpec Target Helper for Supermarket
module Supermarket

View file

@ -38,9 +38,9 @@ module Inspec
end
# TODO: remove. require up, not down.
require "inspec/fetchers/local"
require "inspec/fetchers/url"
require "inspec/fetchers/git"
require "inspec/fetcher/local"
require "inspec/fetcher/url"
require "inspec/fetcher/git"
# TODO: Remove in 4.0 when Compliance fetcher plugin is created
require "plugins/inspec-compliance/lib/inspec-compliance/api"

View file

@ -228,7 +228,7 @@ module Inspec
end
def eval_with_virtual_profile(command)
require "inspec/fetchers/mock"
require "inspec/fetcher/mock"
add_target({ "inspec.yml" => "name: inspec-shell" })
our_profile = @target_profiles.first
ctx = our_profile.runner_context

View file

@ -154,7 +154,7 @@ class Minitest::Test
def unmock(&blk)
# eg: resource = unmock { group "staff" }
require "inspec/fetchers/mock"
require "inspec/fetcher/mock"
require "inspec/runner"
# TODO: there is WAY too much magic going on in here

View file

@ -2,7 +2,7 @@ require "helper"
require "inspec/config"
require "inspec/profile"
require "inspec/runner_mock"
require "inspec/fetchers/mock"
require "inspec/fetcher/mock"
describe "controls" do
def load(content)

View file

@ -1,5 +1,5 @@
require "helper"
require "inspec/fetchers/mock"
require "inspec/fetcher/mock"
describe Inspec::Fetcher::Mock do
let(:fetcher) { Inspec::Fetcher::Mock }

View file

@ -1,5 +1,5 @@
require "helper"
require "inspec/fetcher" # TODO: require fetchers/url directly
require "inspec/fetcher" # TODO: require fetcher/url directly
describe Inspec::Fetcher::Url do
it "registers with the fetchers registry" do

View file

@ -3,7 +3,7 @@
require "helper"
require "inspec/secrets"
require "inspec/runner"
require "inspec/fetchers/mock"
require "inspec/fetcher/mock"
describe Inspec::Runner do
let(:runner) { Inspec::Runner.new({ command_runner: :generic, reporter: [] }) }