diff options
Diffstat (limited to 'spec/unit/knife/data_bag_from_file_spec.rb')
-rw-r--r-- | spec/unit/knife/data_bag_from_file_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/unit/knife/data_bag_from_file_spec.rb b/spec/unit/knife/data_bag_from_file_spec.rb index 4a31c480c0..6eb870436d 100644 --- a/spec/unit/knife/data_bag_from_file_spec.rb +++ b/spec/unit/knife/data_bag_from_file_spec.rb @@ -73,9 +73,9 @@ describe Chef::Knife::DataBagFromFile do let(:data_bags_path) { "data_bags" } let(:plain_data) { { - "id" => "item_name", - "greeting" => "hello", - "nested" => { "a1" => [1, 2, 3], "a2" => { "b1" => true }}, + "id" => "item_name", + "greeting" => "hello", + "nested" => { "a1" => [1, 2, 3], "a2" => { "b1" => true } }, } } let(:enc_data) { Chef::EncryptedDataBagItem.encrypt_data_bag_item(plain_data, secret) } @@ -117,7 +117,6 @@ describe Chef::Knife::DataBagFromFile do end describe "loading all data bags" do - it "loads all data bags when -a or --all options is provided" do knife.name_args = [] config[:all] = true @@ -141,7 +140,6 @@ describe Chef::Knife::DataBagFromFile do knife.run end - end describe "encrypted data bag items" do @@ -158,15 +156,13 @@ describe Chef::Knife::DataBagFromFile do knife.run end - end describe "command line parsing" do it "prints help if given no arguments" do knife.name_args = [bag_name] - expect {knife.run}.to exit_with_code(1) + expect { knife.run }.to exit_with_code(1) expect(stdout.string).to start_with("knife data bag from file BAG FILE|FOLDER [FILE|FOLDER..] (options)") end end - end |