From 99b8aef830b2eabaf3a217eb08da6deb12e5f8c7 Mon Sep 17 00:00:00 2001 From: Melissa Stone Date: Fri, 18 May 2018 10:41:13 -0700 Subject: (maint) Mock with rspec not mocha --- spec/unit/type/mailalias_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit') diff --git a/spec/unit/type/mailalias_spec.rb b/spec/unit/type/mailalias_spec.rb index 1fb195e..80b838c 100644 --- a/spec/unit/type/mailalias_spec.rb +++ b/spec/unit/type/mailalias_spec.rb @@ -29,13 +29,13 @@ describe Puppet::Type.type(:mailalias) do it 'tries and set the recipient when it does the sync' do expect(recipient_resource.retrieve_resource[:recipient]).to eq(:absent) - recipient_resource.property(:recipient).expects(:set).with(['yay']) + expect(recipient_resource.property(:recipient)).to receive(:set).with(['yay']) recipient_resource.property(:recipient).sync end it 'tries and set the included file when it does the sync' do expect(file_resource.retrieve_resource[:file]).to eq(:absent) - file_resource.property(:file).expects(:set).with(tmpfile_path) + expect(file_resource.property(:file)).to receive(:set).with(tmpfile_path) file_resource.property(:file).sync end -- cgit v1.2.3