Sha256: 087909531645c68572c63f9dbbc2bbcc654b3d99d8c7a98729378971975d8e6f
Contents?: true
Size: 671 Bytes
Versions: 7
Compression:
Stored size: 671 Bytes
Contents
XULTestCase.create("Sys Test", function(setup, teardown, test) { test("Sys.tempDir should return a string path to the OS temporary directory", function(){ var tempDir = Sys.tempDir; this.assert(tempDir); this.assert(tempDir.length > 0); }); test("Sys.run should execute the given command and return the exit status in an object", function(){ var result = Sys.run("exit", "47"); this.assertEqual(47, result.exitStatus); }); test("Sys.run should execute the given command and return the output in an object", function(){ var result = Sys.run("echo", "foo bar baz"); this.assertEqual("foo bar baz\n", result.output); }); });
Version data entries
7 entries across 7 versions & 1 rubygems