summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/cookbook_spec.rb')
-rw-r--r--spec/unit/cookbook_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/cookbook_spec.rb b/spec/unit/cookbook_spec.rb
index 6ec0bcd2a2..33b4a3ccd8 100644
--- a/spec/unit/cookbook_spec.rb
+++ b/spec/unit/cookbook_spec.rb
@@ -39,7 +39,7 @@ describe Chef::CookbookVersion do
it "should allow you to set the list of attribute files and create the mapping from short names to paths" do
@cookbook.attribute_filenames = [ "attributes/one.rb", "attributes/two.rb" ]
expect(@cookbook.attribute_filenames).to eq([ "attributes/one.rb", "attributes/two.rb" ])
- expect(@cookbook.attribute_filenames_by_short_filename.keys.sort).to eql(%w(one two))
+ expect(@cookbook.attribute_filenames_by_short_filename.keys.sort).to eql(%w{one two})
expect(@cookbook.attribute_filenames_by_short_filename["one"]).to eq("attributes/one.rb")
expect(@cookbook.attribute_filenames_by_short_filename["two"]).to eq("attributes/two.rb")
end
@@ -47,7 +47,7 @@ describe Chef::CookbookVersion do
it "should allow you to set the list of recipe files and create the mapping of recipe short name to filename" do
@cookbook.recipe_filenames = [ "recipes/one.rb", "recipes/two.rb" ]
expect(@cookbook.recipe_filenames).to eq([ "recipes/one.rb", "recipes/two.rb" ])
- expect(@cookbook.recipe_filenames_by_name.keys.sort).to eql(%w(one two))
+ expect(@cookbook.recipe_filenames_by_name.keys.sort).to eql(%w{one two})
expect(@cookbook.recipe_filenames_by_name["one"]).to eq("recipes/one.rb")
expect(@cookbook.recipe_filenames_by_name["two"]).to eq("recipes/two.rb")
end