Class: TC_Interface
- 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_met ⇒ Object
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_met ⇒ Object
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 |