From 21ca565e88f1741c1d80ce1c4fe3d53c6578672b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 13 Apr 2005 18:22:58 +0000 Subject: 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 --- test/tc_function.rb | 25 +++++++++++++++++++++++++ test/tc_functions.rb | 25 ------------------------- test/ts_other.rb | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 test/tc_function.rb delete mode 100644 test/tc_functions.rb 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 diff --git a/test/tc_functions.rb b/test/tc_functions.rb deleted file mode 100644 index 15c9ad6e1..000000000 --- a/test/tc_functions.rb +++ /dev/null @@ -1,25 +0,0 @@ -$:.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 diff --git a/test/ts_other.rb b/test/ts_other.rb index f1076e6d1..5ad567a4b 100644 --- a/test/ts_other.rb +++ b/test/ts_other.rb @@ -2,5 +2,5 @@ require "blinktest.rb" -TestSuite.new(%w{oparse selector}) +TestSuite.new(%w{oparse selector function}) -- cgit