inspec/test/unit/fetchers/source_reader_test.rb
Ryan Davis 07dc5e3192 First pass at cleaning deprecations for old minitest/spec-style tests.
3 files left to go, and they're behaving oddly so I'm leaving them out
in this pass. Looks like 21 deprecations left.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-03 13:45:19 -07:00

14 lines
314 B
Ruby

require "helper"
require "inspec/source_reader"
describe Inspec::SourceReader do
let(:reg) { Inspec::SourceReader }
it "resolves nil-targets to nil" do
_(reg.resolve(nil)).must_be_nil
end
it "only supports Fetchers" do
_(proc { reg.resolve("not supported") }).must_raise StandardError
end
end