Sha256: 084a610184bf00c68b1a4870c3f7b879e12c2a29c2f47d525c1de07dc8219929
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
#!/usr/local/bin/ruby -w # tc_import.rb # # Created by James Edward Gray II on 2005-04-26. # Copyright 2005 Gray Productions. All rights reserved. $test_lib_dir ||= File.join(File.dirname(__FILE__), "..", "lib") $:.unshift($test_lib_dir) unless $:.include?($test_lib_dir) require "test/unit" require "highline/import" require "stringio" class TestImport < Test::Unit::TestCase def test_import assert_respond_to(self, :agree) assert_respond_to(self, :ask) assert_respond_to(self, :say) end def test_redirection $terminal = HighLine.new(nil, (output = StringIO.new)) say("Testing...") assert_equal("Testing...\n", output.string) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
highline-0.4.0 | test/tc_import.rb |
highline-0.5.0 | test/tc_import.rb |
highline-0.2.0 | test/tc_import.rb |
highline-0.3.0 | test/tc_import.rb |