Sha256: b59d8239ae85570d360adbf9588eaa970cd84eedff7c9ca85f3c8f9e1fc4793f
Contents?: true
Size: 606 Bytes
Versions: 92
Compression:
Stored size: 606 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' describe Puppet::Type.type(:mailalias) do include PuppetSpec::Files let :target do tmpfile('mailalias') end let :resource do described_class.new(:name => "luke", :recipient => "yay", :target => target) end it "should be initially absent" do resource.retrieve_resource[:recipient].should == :absent end it "should try and set the recipient when it does the sync" do resource.retrieve_resource[:recipient].should == :absent resource.property(:recipient).expects(:set).with(["yay"]) resource.property(:recipient).sync end end
Version data entries
92 entries across 92 versions & 2 rubygems