summaryrefslogtreecommitdiff
path: root/spec/unit/knife
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-10-05 22:21:36 -0400
committerThom May <thom@chef.io>2017-10-05 22:21:36 -0400
commit38b64927d2a190b0e4d38f89331fac55642d4f05 (patch)
tree46c9b1d70644717f298862f19a526fbbd8228e7d /spec/unit/knife
parentfde208c800d9186c7c9100087115c8d42084a0ce (diff)
downloadchef-38b64927d2a190b0e4d38f89331fac55642d4f05.tar.gz
fix chefstyle violationstm/chefstylinate
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec/unit/knife')
-rw-r--r--spec/unit/knife/data_bag_create_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/data_bag_create_spec.rb b/spec/unit/knife/data_bag_create_spec.rb
index b295f0d715..1f99fe74fe 100644
--- a/spec/unit/knife/data_bag_create_spec.rb
+++ b/spec/unit/knife/data_bag_create_spec.rb
@@ -73,7 +73,7 @@ describe Chef::Knife::DataBagCreate do
end
it "won't create a data bag with a reserved name for search" do
- ['node', 'role', 'client', 'environment'].each do |name|
+ %w{node role client environment}.each do |name|
knife.name_args = [name]
expect(Chef::DataBag).to receive(:validate_name!).with(knife.name_args[0]).and_raise(Chef::Exceptions::InvalidDataBagName)
expect { knife.run }.to exit_with_code(1)