summaryrefslogtreecommitdiff
path: root/spec/unit/data_bag_item_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/data_bag_item_spec.rb')
-rw-r--r--spec/unit/data_bag_item_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/data_bag_item_spec.rb b/spec/unit/data_bag_item_spec.rb
index 4f017ebb60..7a0d3575fb 100644
--- a/spec/unit/data_bag_item_spec.rb
+++ b/spec/unit/data_bag_item_spec.rb
@@ -204,7 +204,7 @@ describe Chef::DataBagItem do
describe "save" do
before do
@rest = mock("Chef::REST")
- Chef::REST.stub!(:new).and_return(@rest)
+ Chef::REST.stub(:new).and_return(@rest)
@data_bag_item['id'] = "heart of darkness"
raw_data = {"id" => "heart_of_darkness", "author" => "Conrad"}
@data_bag_item.raw_data = raw_data
@@ -248,7 +248,7 @@ describe Chef::DataBagItem do
describe "from an API call" do
before do
@http_client = mock("Chef::REST")
- Chef::REST.stub!(:new).and_return(@http_client)
+ Chef::REST.stub(:new).and_return(@http_client)
end
it "converts raw data to a data bag item" do