summaryrefslogtreecommitdiff
path: root/test/-ext-/test_notimplement.rb
blob: 7394126fb169e5d7e4cab3e938e64fd86b3a4b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require '-test-/notimplement'

class TestNotImplement < Test::Unit::TestCase
  def test_funcall_notimplement
    bug3662 = '[ruby-dev:41953]'
    assert_raise(NotImplementedError, bug3662) {
      Bug.funcall(:notimplement)
    }
  end

  def test_respond_to
    assert_not_respond_to(Bug, :notimplement)
  end
end