inspec/test/unit/fetchers/source_reader_test.rb

15 lines
314 B
Ruby
Raw Normal View History

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