summaryrefslogtreecommitdiffstats
path: root/test/other
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-15 20:09:07 +0000
committerLuke Kanies <luke@madstop.com>2005-04-15 20:09:07 +0000
commit3904d2efd505fec08de3c4e8e7ab6d14586aed7e (patch)
tree44f211e5d548037f5f1ff98289273edd09ac898f /test/other
parent13f16b6690224758706e1c68d1da577a13df8be5 (diff)
downloadpuppet-3904d2efd505fec08de3c4e8e7ab6d14586aed7e.tar.gz
puppet-3904d2efd505fec08de3c4e8e7ab6d14586aed7e.tar.xz
puppet-3904d2efd505fec08de3c4e8e7ab6d14586aed7e.zip
fixing most of the function call stuff
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@167 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/other')
-rw-r--r--test/other/tc_fact.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/other/tc_fact.rb b/test/other/tc_fact.rb
new file mode 100644
index 000000000..c1aaafa72
--- /dev/null
+++ b/test/other/tc_fact.rb
@@ -0,0 +1,28 @@
+if __FILE__ == $0
+ $:.unshift '..'
+ $:.unshift '../../lib'
+ $blinkbase = "../.."
+end
+
+require 'blink/fact'
+require 'test/unit'
+
+# $Id$
+
+class TestFacts < Test::Unit::TestCase
+ def test_newfact
+ Blink[:debug] = true if __FILE__ == $0
+ fact = nil
+ assert_nothing_raised() {
+ fact = Blink::Fact.new(
+ :name => "funtest",
+ :code => "echo funtest",
+ :interpreter => "/bin/sh"
+ )
+ }
+ assert_equal(
+ "funtest",
+ Blink::Fact["funtest"]
+ )
+ end
+end