Sha256: eb278e05ffbbd96ecb5eacfbe872d0a955c02b3a3aa802c8cbf147727ba1a5db

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

require 'test/unit'
require 'facet/duckhunter'


class TC_DuckHunter < 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

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.0 test/tc_duckhunter.rb
facets-0.7.1 test/tc_duckhunter.rb
facets-0.7.2 test/tc_duckhunter.rb