mirror of
https://github.com/inspec/inspec
synced 2024-12-21 18:43:13 +00:00
07dc5e3192
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>
14 lines
314 B
Ruby
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
|