Class: TC_Interface

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/carat-dev/interface_work/SCRAP/j-interface/interface-0.1.0/test/tc_interface.rb

Instance Method Summary collapse

Instance Method Details

#test_requirements_metObject



47
48
49
50
# File 'lib/carat-dev/interface_work/SCRAP/j-interface/interface-0.1.0/test/tc_interface.rb', line 47

def test_requirements_met
	assert_nothing_raised{ B.new.extend(TestInterface) }
	assert_nothing_raised{ C.new.extend(TestSubInterface) }
end

#test_requirements_not_metObject



38
39
40
41
42
43
44
45
# File 'lib/carat-dev/interface_work/SCRAP/j-interface/interface-0.1.0/test/tc_interface.rb', line 38

def test_requirements_not_met
	assert_raises(Interface::MethodMissing){
		A.new.extend(TestInterface)
	}
	assert_raises(Interface::MethodMissing){
		B.new.extend(TestSubInterface)
	}
end

#test_versionObject



34
35
36
# File 'lib/carat-dev/interface_work/SCRAP/j-interface/interface-0.1.0/test/tc_interface.rb', line 34

def test_version
	assert_equal("0.1.0",Interface::VERSION)
end