summaryrefslogtreecommitdiff
path: root/chef/spec/unit/knife/role_bulk_delete_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/knife/role_bulk_delete_spec.rb')
-rw-r--r--chef/spec/unit/knife/role_bulk_delete_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/chef/spec/unit/knife/role_bulk_delete_spec.rb b/chef/spec/unit/knife/role_bulk_delete_spec.rb
index 2468728474..8d3d724290 100644
--- a/chef/spec/unit/knife/role_bulk_delete_spec.rb
+++ b/chef/spec/unit/knife/role_bulk_delete_spec.rb
@@ -25,7 +25,7 @@ describe Chef::Knife::RoleBulkDelete do
:print_after => nil
}
@knife.name_args = ["."]
- @knife.stub!(:json_pretty_print).and_return(:true)
+ @knife.stub!(:output).and_return(:true)
@knife.stub!(:confirm).and_return(true)
@roles = Hash.new
%w{dev staging production}.each do |role_name|
@@ -45,7 +45,7 @@ describe Chef::Knife::RoleBulkDelete do
end
it "should print the roles you are about to delete" do
- @knife.should_receive(:json_pretty_print).with(@knife.format_list_for_display(@roles))
+ @knife.should_receive(:output).with(@knife.format_list_for_display(@roles))
@knife.run
end
@@ -78,7 +78,7 @@ describe Chef::Knife::RoleBulkDelete do
it "should pretty_print the roles, formatted for display" do
@knife.config[:print_after] = true
@roles.each_value do |n|
- @knife.should_receive(:json_pretty_print).with(@knife.format_for_display(n))
+ @knife.should_receive(:output).with(@knife.format_for_display(n))
end
@knife.run
end