inspec/test/unit/fetchers/source_reader_test.rb
Ryan Davis fae4230a41 Removing inspec/profile_vendor from inspec/base_cli.
This was the next most expensive require in the analysis.

Also rearranged the way that ui handled tables to be lazy.

```
% SLOW=1 time rake test:functional

before: Finished in  681.514579s, 0.5136 runs/s, 2.9919 assertions/s.
after : Finished in  642.655918s, 0.5446 runs/s, 3.1728 assertions/s.
```

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 19:16:58 -07:00

14 lines
311 B
Ruby

require "helper"
require "inspec/source_reader"
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