diff options
author | Thom May <thom@chef.io> | 2017-10-05 22:21:36 -0400 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-10-05 22:21:36 -0400 |
commit | 38b64927d2a190b0e4d38f89331fac55642d4f05 (patch) | |
tree | 46c9b1d70644717f298862f19a526fbbd8228e7d /spec | |
parent | fde208c800d9186c7c9100087115c8d42084a0ce (diff) | |
download | chef-38b64927d2a190b0e4d38f89331fac55642d4f05.tar.gz |
fix chefstyle violationstm/chefstylinate
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife/data_bag_create_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb b/spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb index c90532c078..fea7a2d54d 100644 --- a/spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb +++ b/spec/unit/chef_fs/data_handler/data_bag_item_data_handler.rb @@ -55,7 +55,7 @@ describe Chef::ChefFS::DataHandler::DataBagItemDataHandler do end context "using a reserved word for the data bag name" do - %w(node role environment client).each do |reserved_word| + %w{node role environment client}.each do |reserved_word| let(:entry) { TestDataBagItem.new(reserved_word, "bag") } let(:object) do { "raw_data" => { "id" => "bag" } } 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) |