diff options
author | Luke Kanies <luke@madstop.com> | 2005-04-13 18:22:58 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-04-13 18:22:58 +0000 |
commit | 21ca565e88f1741c1d80ce1c4fe3d53c6578672b (patch) | |
tree | e10961892dab5a4c043be77fd82cc5ea016483bc /test/tc_function.rb | |
parent | 1aab204c5bf720be65eb87663636f0e901bfb359 (diff) | |
download | puppet-21ca565e88f1741c1d80ce1c4fe3d53c6578672b.tar.gz puppet-21ca565e88f1741c1d80ce1c4fe3d53c6578672b.tar.xz puppet-21ca565e88f1741c1d80ce1c4fe3d53c6578672b.zip |
renaming tc_functions.rb, and adding to ts_other.rb
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@112 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/tc_function.rb')
-rw-r--r-- | test/tc_function.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tc_function.rb b/test/tc_function.rb new file mode 100644 index 000000000..15c9ad6e1 --- /dev/null +++ b/test/tc_function.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 |