diff options
| author | Luke Kanies <luke@madstop.com> | 2005-04-13 18:22:03 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-04-13 18:22:03 +0000 |
| commit | 1aab204c5bf720be65eb87663636f0e901bfb359 (patch) | |
| tree | 57a8bebb9ea1112a777a84a6f2e869c605bf1ddb /test | |
| parent | c45c5c4fff877c3d13af2ba9a5db94fa16a5473c (diff) | |
| download | puppet-1aab204c5bf720be65eb87663636f0e901bfb359.tar.gz puppet-1aab204c5bf720be65eb87663636f0e901bfb359.tar.xz puppet-1aab204c5bf720be65eb87663636f0e901bfb359.zip | |
functions mostly work
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@111 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rw-r--r-- | test/tc_functions.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tc_functions.rb b/test/tc_functions.rb new file mode 100644 index 000000000..15c9ad6e1 --- /dev/null +++ b/test/tc_functions.rb @@ -0,0 +1,25 @@ +$:.unshift '../lib' if __FILE__ == $0 # Make this library first! + +require 'blink/function' +require 'blink/fact' +require 'test/unit' + +# $Id$ + +class TestFunctions < Test::Unit::TestCase + def test_retrieve + vars = %w{operatingsystem} + + vars.each { |var| + value = nil + assert_nothing_raised() { + value = Blink::Function["retrieve"].call(var) + } + + assert_equal( + Blink::Fact[var], + value + ) + } + end +end |
