Sha256: dd68e8c35aa770c9e531a76b45eac718409b32472cc52e19b179343f181b036c

Contents?: true

Size: 468 Bytes

Versions: 15

Compression:

Stored size: 468 Bytes

Contents

require 'test/unit'
require 'wgrep'
require 'fileutils'

class TestWGrep < Test::Unit::TestCase
    def test_run
	stdout = $stdout
	output = File.new "wgrep_out", "w"
	$stdout = output
	assert_equal(WGrep::WGrep.new.run(%w(Hello text)), 0,
		"Input to wgrep is ok, so `run' should return 0.")
	output.close
	$stdout = stdout
	lines = File.read("wgrep_out").split("\n")
	assert_equal(lines.size, 1)
    ensure
	FileUtils.rm_f "wgrep_out"
	$stdout = stdout
    end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rant-0.5.4 test/project_rb1/test/tc_wgrep.rb
rant-0.3.2 test/project_rb1/test/tc_wgrep.rb
rant-0.3.8 test/project_rb1/test/tc_wgrep.rb
rant-0.4.2 test/project_rb1/test/tc_wgrep.rb
rant-0.4.4 test/project_rb1/test/tc_wgrep.rb
rant-0.4.6 test/project_rb1/test/tc_wgrep.rb
rant-0.5.0 test/project_rb1/test/tc_wgrep.rb
rant-0.5.2 test/project_rb1/test/tc_wgrep.rb
rant-0.5.6 test/project_rb1/test/tc_wgrep.rb
rant-0.3.0 test/project_rb1/test/tc_wgrep.rb
rant-0.3.4 test/project_rb1/test/tc_wgrep.rb
rant-0.3.6 test/project_rb1/test/tc_wgrep.rb
rant-0.4.0 test/project_rb1/test/tc_wgrep.rb
rant-0.4.8 test/project_rb1/test/tc_wgrep.rb
rant-0.5.7 test/project_rb1/test/tc_wgrep.rb