mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
17 lines
354 B
Ruby
17 lines
354 B
Ruby
# encoding: utf-8
|
|
# 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
|