mirror of
https://github.com/inspec/inspec
synced 2024-11-24 05:33:17 +00:00
6c19e81a06
Signed-off-by: Miah Johnson <miah@chia-pet.org>
14 lines
281 B
Ruby
14 lines
281 B
Ruby
|
|
require 'helper'
|
|
|
|
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
|