Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 19 lines (13 sloc) 0.327 kb
db9f1ed @clarkware Initial import
authored
1 #!/usr/bin/env ruby
2
3 require 'test/unit'
4
5 class MethodMissingTest < Test::Unit::TestCase
6
7 def test_method_missing
8 foo(1, 'a')
9 assert_equal("foo", @name)
10 assert_equal([1, 'a'], @args)
11 end
12
13 def method_missing(method_symbol, *method_args)
14 @name = method_symbol.id2name
15 @args = method_args
16 end
17
18 end
Something went wrong with that request. Please try again.