summaryrefslogtreecommitdiff
path: root/spec/unit/knife/node_bulk_delete_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
commitb19b7d000887209f9d8dc1dc6aa468a0497a7391 (patch)
tree68d1eb6c136df20c2800f1dddb4e2c1ed5d75a42 /spec/unit/knife/node_bulk_delete_spec.rb
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/knife/node_bulk_delete_spec.rb')
-rw-r--r--spec/unit/knife/node_bulk_delete_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/knife/node_bulk_delete_spec.rb b/spec/unit/knife/node_bulk_delete_spec.rb
index 51f707dfcf..3faece5469 100644
--- a/spec/unit/knife/node_bulk_delete_spec.rb
+++ b/spec/unit/knife/node_bulk_delete_spec.rb
@@ -26,8 +26,8 @@ describe Chef::Knife::NodeBulkDelete do
@knife = Chef::Knife::NodeBulkDelete.new
@knife.name_args = ["."]
@stdout = StringIO.new
- @knife.ui.stub!(:stdout).and_return(@stdout)
- @knife.ui.stub!(:confirm).and_return(true)
+ @knife.ui.stub(:stdout).and_return(@stdout)
+ @knife.ui.stub(:confirm).and_return(true)
@nodes = Hash.new
%w{adam brent jacob}.each do |node_name|
@nodes[node_name] = "http://localhost:4000/nodes/#{node_name}"
@@ -53,11 +53,11 @@ describe Chef::Knife::NodeBulkDelete do
@inflatedish_list = @nodes.keys.inject({}) do |nodes_by_name, name|
node = Chef::Node.new()
node.name(name)
- node.stub!(:destroy).and_return(true)
+ node.stub(:destroy).and_return(true)
nodes_by_name[name] = node
nodes_by_name
end
- @knife.stub!(:all_nodes).and_return(@inflatedish_list)
+ @knife.stub(:all_nodes).and_return(@inflatedish_list)
end
it "should print the nodes you are about to delete" do