summaryrefslogtreecommitdiff
path: root/spec/unit/knife/data_bag_show_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/data_bag_show_spec.rb')
-rw-r--r--spec/unit/knife/data_bag_show_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/knife/data_bag_show_spec.rb b/spec/unit/knife/data_bag_show_spec.rb
index d64b4f286d..669dfeb5cc 100644
--- a/spec/unit/knife/data_bag_show_spec.rb
+++ b/spec/unit/knife/data_bag_show_spec.rb
@@ -30,9 +30,9 @@ describe Chef::Knife::DataBagShow do
@knife = Chef::Knife::DataBagShow.new
@knife.config[:format] = 'json'
@rest = mock("Chef::REST")
- @knife.stub!(:rest).and_return(@rest)
+ @knife.stub(:rest).and_return(@rest)
@stdout = StringIO.new
- @knife.ui.stub!(:stdout).and_return(@stdout)
+ @knife.ui.stub(:stdout).and_return(@stdout)
end
@@ -83,7 +83,7 @@ describe Chef::Knife::DataBagShow do
end
it "prints the decrypted contents of an item when given --secret" do
- @knife.stub!(:config).and_return({:secret => @secret})
+ @knife.stub(:config).and_return({:secret => @secret})
Chef::EncryptedDataBagItem.should_receive(:load).
with('bag_name', 'item_name', @secret).
and_return(Chef::EncryptedDataBagItem.new(@enc_data, @secret))
@@ -92,7 +92,7 @@ describe Chef::Knife::DataBagShow do
end
it "prints the decrypted contents of an item when given --secret_file" do
- @knife.stub!(:config).and_return({:secret_file => @secret_file.path})
+ @knife.stub(:config).and_return({:secret_file => @secret_file.path})
Chef::EncryptedDataBagItem.should_receive(:load).
with('bag_name', 'item_name', @secret).
and_return(Chef::EncryptedDataBagItem.new(@enc_data, @secret))