summaryrefslogtreecommitdiff
path: root/spec/unit/knife/core/node_editor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/core/node_editor_spec.rb')
-rw-r--r--spec/unit/knife/core/node_editor_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/knife/core/node_editor_spec.rb b/spec/unit/knife/core/node_editor_spec.rb
index 770e2e84aa..6665616027 100644
--- a/spec/unit/knife/core/node_editor_spec.rb
+++ b/spec/unit/knife/core/node_editor_spec.rb
@@ -165,7 +165,7 @@ describe Chef::Knife::NodeEditor do
context "and changes affect only editable properties" do
before(:each) do
- allow(ui).to receive(:edit_data)
+ allow(ui).to receive(:edit_hash)
.with(subject.view)
.and_return(updated_data)
@@ -181,7 +181,7 @@ describe Chef::Knife::NodeEditor do
before(:each) do
data = updated_data.merge("bad_property" => "bad_value")
- allow(ui).to receive(:edit_data)
+ allow(ui).to receive(:edit_hash)
.with(subject.view)
.and_return(data)
@@ -197,7 +197,7 @@ describe Chef::Knife::NodeEditor do
context "and changes were not made" do
before(:each) do
- allow(ui).to receive(:edit_data)
+ allow(ui).to receive(:edit_hash)
.with(subject.view)
.and_return(subject.view.dup)