Sha256: a34131e91a63d9d4369708b277340d576dbb81273d8f963d8becb7a4fca5488e

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 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.

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, :choose)
		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

2 entries across 2 versions & 1 rubygems

Version Path
highline-1.0.0 test/tc_import.rb
highline-1.0.1 test/tc_import.rb