Sha256: 90397353ac6ae23d54eed92a3a75f6b8b7bf966044e828bbce081a54ebf4a08c
Contents?: true
Size: 751 Bytes
Versions: 22
Compression:
Stored size: 751 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Variables" do describe "instances" do before(:each) do @tc = TestBaseClass.new do has_variable(:name => "master", :value => "herman") end @variable = @tc.resource(:variable).first end it "have the name in the options" do @variable.name.should == "master" end it "should store the owner's name as well" do @variable.value.should == "herman" end describe "into PuppetResolver" do before(:each) do @compiled = PuppetResolver.new(@tc.to_properties_hash).compile end it "have the variable set in the puppet output" do @compiled.should match(/\$master = "herman"/) end end end end
Version data entries
22 entries across 22 versions & 3 rubygems