aboutsummaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorMelissa Stone <melissa@puppet.com>2018-08-15 15:42:55 -0700
committerMelissa Stone <melissa@puppet.com>2018-08-15 15:42:55 -0700
commite98b8dac72e632c893d11fcc7d4168d381ca2c02 (patch)
tree71e02aa514bf677ef4f924f9bafe3a76661d86ec /spec/unit
parent4ea4e5fcaf87834374d9904e46dd35e6cd64e026 (diff)
parent90fdf1f05e8f165bae7ca54ec024ca5fd7d55636 (diff)
downloadpuppet-mailalias_core-e98b8dac72e632c893d11fcc7d4168d381ca2c02.tar.gz
puppet-mailalias_core-e98b8dac72e632c893d11fcc7d4168d381ca2c02.tar.bz2
Merge remote-tracking branch 'upstream/master' into release
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/type/mailalias_spec.rb4
1 files changed, 2 insertions, 2 deletions
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