summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/compiler.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-07-23 23:52:44 -0700
committerLuke Kanies <luke@madstop.com>2009-08-01 12:50:41 -0700
commit6ed01037ad8b6d8d5ff7158ef6e09c785ed8b9fe (patch)
treec0c6e37e74d8fabaa95e32092b0d4296aa4542a5 /spec/unit/parser/compiler.rb
parent39320b8794549fa7806f2e9e57346242b0b7e847 (diff)
downloadpuppet-6ed01037ad8b6d8d5ff7158ef6e09c785ed8b9fe.tar.gz
puppet-6ed01037ad8b6d8d5ff7158ef6e09c785ed8b9fe.tar.xz
puppet-6ed01037ad8b6d8d5ff7158ef6e09c785ed8b9fe.zip
Adding support for an external catalog version
This allows you to specify a command used to determine the catalog version. Also added an integration test to verify the version cascades. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/parser/compiler.rb')
-rwxr-xr-xspec/unit/parser/compiler.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/parser/compiler.rb b/spec/unit/parser/compiler.rb
index 9b9428296..0cc6e8a17 100755
--- a/spec/unit/parser/compiler.rb
+++ b/spec/unit/parser/compiler.rb
@@ -82,6 +82,10 @@ describe Puppet::Parser::Compiler do
@parser.expects(:nodes?).returns true
@compiler.ast_nodes?.should be_true
end
+
+ it "should copy the parser version to the catalog" do
+ @compiler.catalog.version.should == @parser.version
+ end
end
describe "when managing scopes" do