Sha256: c7e4128ada3bf7206ed4030454ada86503ea4d1f054d8b0f42920d0cffb257b7

Contents?: true

Size: 730 Bytes

Versions: 1

Compression:

Stored size: 730 Bytes

Contents

###### #####   #### ######
  ##   ##     ##      ##
  ##   ####     ##    ##
  ##   ##        ##   ##
  ##   #####  ####    ##

require 'test/unit'
require 'mega/methodprobe'

# " I am a Duck Hunter ! "

class TC_MethodProbe < Test::Unit::TestCase

  # fixture
  def amethod(x)
    x + 1
  end

  def test_signiture_default
    assert_nothing_raised {
      method(:amethod).signature
    }
  end

  def test_signiture_with_class
    assert_nothing_raised {
      method(:amethod).signature(:class)
    }
  end

  def test_signiture_pp
    assert_nothing_raised {
      method(:amethod).signature(:pp)
    }
  end

  def test_signiture_all
    assert_nothing_raised {
      method(:amethod).signature(:complete)
    }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mega-0.3.1 test/tc_methodprobe.rb