diff options
-rw-r--r-- | spec/support/shared/unit/provider/file.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index 4d1bdb8022..55e4a0663a 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -467,22 +467,12 @@ shared_examples_for Chef::Provider::File do context "with user-supplied verifications" do it "calls #verify on each verification with tempfile path" do - #verification = instance_double(Chef::Resource::File::Verification) - #verification_fail = instance_double(Chef::Resource::File::Verification) - #allow(Chef::Resource::File::Verification).to( - # receive(:new).with(anything(), "true", anything()).and_return(verification)) provider.new_resource.verify "true" provider.new_resource.verify "true" provider.send(:do_validate_content) end it "raises an exception if any verification fails" do - #verification = instance_double(Chef::Resource::File::Verification) - #verification_fail = instance_double(Chef::Resource::File::Verification) - #allow(Chef::Resource::File::Verification).to( - # receive(:new).with(anything(), "true", anything()).and_return(verification)) - #allow(Chef::Resource::File::Verification).to( - # receive(:new).with(anything(), "false", anything()).and_return(verification_fail)) provider.new_resource.verify "true" provider.new_resource.verify "false" expect{provider.send(:do_validate_content)}.to raise_error(Chef::Exceptions::ValidationFailed) |