diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-09-14 09:41:56 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-09-14 09:41:56 -0700 |
commit | d5ec7382e5587e7f4fed61287a77cfa1e10747a4 (patch) | |
tree | d7c05ae55a2f91e1eaa149e1551a4667ce9407c5 /spec/support | |
parent | e24de71409a861f9bc6318755debb2c18d27f2a3 (diff) | |
download | chef-d5ec7382e5587e7f4fed61287a77cfa1e10747a4.tar.gz |
Use instance_double instead of instancejdm/fix-mixlib-shellout
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared/unit/provider/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index f552fe0a2a..ff9e271a0a 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -465,8 +465,8 @@ shared_examples_for Chef::Provider::File do t } - let(:verification) { double("Verification") } - let(:verification_fail) { double("Verification Fail") } + let(:verification) { instance_double(Chef::Resource::File::Verification) } + let(:verification_fail) { instance_double(Chef::Resource::File::Verification) } context "with user-supplied verifications" do it "calls #verify on each verification with tempfile path" do |