diff options
author | Thom May <thom@chef.io> | 2016-02-09 11:20:56 -0800 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-02-15 12:32:06 +0000 |
commit | 8eae0cc429b1ad2f569e611202051a1bddbe142a (patch) | |
tree | 9f3ec8fc4331a69825e8acb8d298a3cd74fdea65 /spec/unit/knife/data_bag_edit_spec.rb | |
parent | a030711a57e126f58b2e897c915d430e67cb7d13 (diff) | |
download | chef-8eae0cc429b1ad2f569e611202051a1bddbe142a.tar.gz |
Be way more explicit about how we're handling datatm/missed_migration
This just codifies the behaviour we're actually using - that we're
passing a json string and expecting a hash back.
Also adds a deprecation warning to the use of Chef::JSONCompat.from_json
Diffstat (limited to 'spec/unit/knife/data_bag_edit_spec.rb')
-rw-r--r-- | spec/unit/knife/data_bag_edit_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/data_bag_edit_spec.rb b/spec/unit/knife/data_bag_edit_spec.rb index 1001e68ce4..635dc63489 100644 --- a/spec/unit/knife/data_bag_edit_spec.rb +++ b/spec/unit/knife/data_bag_edit_spec.rb @@ -55,7 +55,7 @@ describe Chef::Knife::DataBagEdit do it "correctly edits then uploads the data bag" do expect(Chef::DataBagItem).to receive(:load).with(bag_name, item_name).and_return(db) expect(knife).to receive(:encrypted?).with(db.raw_data).and_return(is_encrypted?) - expect(knife).to receive(:edit_data).with(data_to_edit).and_return(raw_edited_hash) + expect(knife).to receive(:edit_hash).with(data_to_edit).and_return(raw_edited_hash) expect(rest).to receive(:put).with("data/#{bag_name}/#{item_name}", transmitted_hash).ordered knife.run |