Improve test expressiveness by using more direct assertions.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-12-24 04:16:48 -08:00
parent 06ceba3f3d
commit 99ded5a132

View file

@ -26,7 +26,7 @@ describe Inspec::LibraryEvalContext do
it "adds the resource to our registry" do
eval_context.instance_eval(resource_content)
_(registry.keys.include?("my_test_resource")).must_equal true
_(registry.keys).must_include "my_test_resource"
end
it "adds nothing to the default registry" do