Class: TC_CloseCall

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/carat-dev/closecall/closecall-test.rb

Overview

test

Instance Method Summary collapse

Instance Method Details

#test_itObject



31
32
33
34
35
36
37
# File 'lib/carat-dev/closecall/closecall-test.rb', line 31

def test_it
  test = T.new
  assert_equal( '3:a,b', test.somemethod('a', 'b') )
  assert_equal( '1:a', test.somemethod('a') )
  assert_equal( '2:b', test.somemethod2('b') )
  assert_raises( NameError, test.somemethod('a', 'b', 'c') )
end