Sha256: a27974186fca2c23df9c6529f910e99ef8e588a171b82020d62e9343a53e9f67
Contents?: true
Size: 1.03 KB
Versions: 22
Compression:
Stored size: 1.03 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Symlink" do describe "instances" do before(:each) do @tc = TestBaseClass.new do has_symlink("/etc/apache2/sites-enabled/poolpartyrb.com", :source => "/etc/apache2/sites-available/poolpartyrb.com") end @dir = @tc.resource(:symlink).first end it "have the name in the options" do @dir.name.should == "/etc/apache2/sites-enabled/poolpartyrb.com" end it "should store the source name" do @dir.source.should == "/etc/apache2/sites-available/poolpartyrb.com" 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(/file \{ "\/etc\/apache2\/sites-enabled\/poolpartyrb\.com"/) end it "set the owner as the owner" do @compiled.should match(/ensure => "\/etc\/apache2\/sites-available\/poolpartyrb\.com"/) end end end end
Version data entries
22 entries across 22 versions & 3 rubygems