Sha256: 4e79fdb12dc36825bf1835a917154892248e0257e90bf1278f7ac05a963a59ea
Contents?: true
Size: 615 Bytes
Versions: 4
Compression:
Stored size: 615 Bytes
Contents
#! /usr/bin/env ruby -S rspec 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
4 entries across 4 versions & 1 rubygems