Sha256: 572c7208e1f6bbec99d29dcb8e415e57b1231fb3485a1784f76781fb487dd439

Contents?: true

Size: 597 Bytes

Versions: 11

Compression:

Stored size: 597 Bytes

Contents

require 'test/unit'
require 'tutil'

$testImportTruthDir ||= File.expand_path(File.dirname(__FILE__))

class TestTruth < Test::Unit::TestCase
    def setup
	# Ensure we run in test directory.
	Dir.chdir($testImportTruthDir) unless Dir.pwd == $testImportTruthDir
    end
    def test_opt_tasks
	out, err = assert_rant("--tasks")
	assert_match(
	    /print hello.*\n.*touch rm\.t.*\n.*this file is useless/, out)
    end
    def test_drag
	assert_rant("rm.t")
	assert(test(?f, "rm.t"))
	assert_rant("clean")
	assert(!test(?e, "rm.t"))
    end
    def test_pipe
	assert_rant("sys_pipe")
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rant-0.4.0 test/import/truth/test_truth.rb
rant-0.4.2 test/import/truth/test_truth.rb
rant-0.4.4 test/import/truth/test_truth.rb
rant-0.4.6 test/import/truth/test_truth.rb
rant-0.4.8 test/import/truth/test_truth.rb
rant-0.5.0 test/import/truth/test_truth.rb
rant-0.5.4 test/import/truth/test_truth.rb
rant-0.5.6 test/import/truth/test_truth.rb
rant-0.3.8 test/import/truth/test_truth.rb
rant-0.5.2 test/import/truth/test_truth.rb
rant-0.5.7 test/import/truth/test_truth.rb