inspec/test/unit/fetchers/source_reader_test.rb

18 lines
354 B
Ruby
Raw Normal View History

2016-02-21 11:39:07 +00:00
# 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