diff options
-rw-r--r-- | spec/unit/provider/package/apt_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/provider/package/apt_spec.rb b/spec/unit/provider/package/apt_spec.rb index b8e23d8756..a72c09242f 100644 --- a/spec/unit/provider/package/apt_spec.rb +++ b/spec/unit/provider/package/apt_spec.rb @@ -169,6 +169,11 @@ SHOWPKG_STDOUT @provider.load_current_resource end + it "raises an exception if a source is specified (CHEF-5113)" do + @new_resource.source "pluto" + @provider.define_resource_requirements + expect { @provider.run_action(:install) }.to raise_error(Chef::Exceptions::Package) + end end context "after loading the current resource" do |