inspec/test/unit/fetchers/source_reader_test.rb
Miah Johnson 2a1b1d8e88 Remove all leading newlines.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-31 11:43:44 -07:00

13 lines
280 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