mirror of
https://github.com/inspec/inspec
synced 2024-12-22 19:13:24 +00:00
659b4b373a
Signed-off-by: Miah Johnson <miah@chia-pet.org>
16 lines
336 B
Ruby
16 lines
336 B
Ruby
# author: Dominik Richter
|
|
# author: Christoph Hartmann
|
|
|
|
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
|