diff options
author | Josh Cooper <josh@puppet.com> | 2018-08-17 12:00:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-17 12:00:51 -0700 |
commit | 0eb5e9febcbd06685cc07f9b4e5b1f348c538ffe (patch) | |
tree | dba1f625b02c3edc3ca06a328cec688c23227540 /spec/unit | |
parent | 4ea4e5fcaf87834374d9904e46dd35e6cd64e026 (diff) | |
parent | 6986939206d4d0438cd66fd125026c90feeeed08 (diff) | |
download | puppet-mailalias_core-0eb5e9febcbd06685cc07f9b4e5b1f348c538ffe.tar.gz puppet-mailalias_core-0eb5e9febcbd06685cc07f9b4e5b1f348c538ffe.tar.bz2 |
Merge pull request #12 from melissa/1.0.4-release
1.0.4 release
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/type/mailalias_spec.rb | 4 |
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 |