Sha256: 2e177cf37fc20525ec14882fbe369c41f1491ca4b26df5437d848da16749305b
Contents?: true
Size: 838 Bytes
Versions: 6
Compression:
Stored size: 838 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "File" do describe "instances" do before(:each) do @tc = TestBaseClass.new do has_package(:name => "apache2") end @package = @tc.resource(:package).first end it "have the name in the options" do @package.name.should == "apache2" end it "should ensure it's present" do @package.ensures.should == "present" end describe "into PuppetResolver" do before(:each) do @compiled = PuppetResolver.new(@tc.to_properties_hash).compile end it "should set the filename to the name of the file" do @compiled.should match(/package \{ "apache2"/) end it "have the mode set in the puppet output" do @compiled.should match(/ensure => "present"/) end end end end
Version data entries
6 entries across 6 versions & 2 rubygems