Sha256: 83a2f0f47431fa47363757e5ce54a95ab6e3b9f5a6ae65689523344921ad90d7
Contents?: true
Size: 705 Bytes
Versions: 19
Compression:
Stored size: 705 Bytes
Contents
#!/usr/bin/env ruby # # Created by Luke A. Kanies on 2007-0419. # Copyright (c) 2006. All rights reserved. require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'puppettest/parsertesting' class TestVariable < Test::Unit::TestCase include PuppetTest include PuppetTest::ParserTesting AST = Puppet::Parser::AST def setup super @scope = mkscope @name = "myvar" @var = AST::Variable.new(:value => @name) end def test_evaluate assert_equal(:undef, @var.evaluate(@scope), "did not return :undef on unset var") @scope.setvar(@name, "something") assert_equal("something", @var.evaluate(@scope), "incorrect variable value") end end
Version data entries
19 entries across 19 versions & 1 rubygems