Sha256: 12aa687ed1864163b5bdab1761e3850261f3b6ced4b14cedbf1ca1aaa590edb0
Contents?: true
Size: 955 Bytes
Versions: 3
Compression:
Stored size: 955 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../spec_helper' require 'puppet/property' describe Puppet::Property do describe "when setting the value" do it "should just set the 'should' value" do @class = Class.new(Puppet::Property) @class.initvars @property = @class.new :resource => mock('resource') @property.expects(:should=).with("foo") @property.value = "foo" end end describe "when returning the value" do before do @class = Class.new(Puppet::Property) @class.initvars @property = @class.new :resource => mock('resource') end it "should return nil if no value is set" do @property.value.should be_nil end it "should return any set 'should' value" do @property.should = "foo" @property.value.should == "foo" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.9 | spec/unit/property.rb |
puppet-0.24.7 | spec/unit/property.rb |
puppet-0.24.8 | spec/unit/property.rb |