summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/blinktest.rb3
-rw-r--r--test/client/tc_client.rb3
-rw-r--r--test/other/tc_fact.rb28
3 files changed, 33 insertions, 1 deletions
diff --git a/test/blinktest.rb b/test/blinktest.rb
index 1804f48e1..f44167486 100644
--- a/test/blinktest.rb
+++ b/test/blinktest.rb
@@ -46,7 +46,8 @@ unless defined? BlinkTestSuite
File.join(textdir,file)
}.find_all { |file|
FileTest.file?(file)
- }.each { |file|
+ }.sort.each { |file|
+ puts "Processing %s" % file
yield file
}
end
diff --git a/test/client/tc_client.rb b/test/client/tc_client.rb
index e7cbd6ef9..21d308e04 100644
--- a/test/client/tc_client.rb
+++ b/test/client/tc_client.rb
@@ -27,4 +27,7 @@ class TestClient < Test::Unit::TestCase
)
}
end
+
+ def test_files
+ end
end
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