diff options
Diffstat (limited to 'spec/unit/cookbook_version_file_specificity_spec.rb')
-rw-r--r-- | spec/unit/cookbook_version_file_specificity_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/cookbook_version_file_specificity_spec.rb b/spec/unit/cookbook_version_file_specificity_spec.rb index 4d0c8c62f1..b562eb53c2 100644 --- a/spec/unit/cookbook_version_file_specificity_spec.rb +++ b/spec/unit/cookbook_version_file_specificity_spec.rb @@ -338,24 +338,24 @@ describe Chef::CookbookVersion, "file specificity" do it "should raise a FileNotFound exception without match" do node = Chef::Node.new - expect do + expect { @cookbook.preferred_manifest_record(node, :files, "doesn't_exist.rb") - end.to raise_error(Chef::Exceptions::FileNotFound) + }.to raise_error(Chef::Exceptions::FileNotFound) end it "should raise a FileNotFound exception consistently without match" do node = Chef::Node.new - expect do + expect { @cookbook.preferred_manifest_record(node, :files, "doesn't_exist.rb") - end.to raise_error(Chef::Exceptions::FileNotFound) + }.to raise_error(Chef::Exceptions::FileNotFound) - expect do + expect { @cookbook.preferred_manifest_record(node, :files, "doesn't_exist.rb") - end.to raise_error(Chef::Exceptions::FileNotFound) + }.to raise_error(Chef::Exceptions::FileNotFound) - expect do + expect { @cookbook.preferred_manifest_record(node, :files, "doesn't_exist.rb") - end.to raise_error(Chef::Exceptions::FileNotFound) + }.to raise_error(Chef::Exceptions::FileNotFound) end describe "when fetching the contents of a directory by file specificity" do |