mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
merge revision(s) 72c02aa4b7
: [Backport #16662]
Moved not-implemented method tests [Bug #16662] Test not-implemented method with the dedicated methods, instead of platform dependent features.
This commit is contained in:
parent
ae804b1434
commit
c53cee7a0e
3 changed files with 8 additions and 91 deletions
|
@ -13,10 +13,17 @@ class Test_NotImplement < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_respond_to
|
||||
assert_include(Bug.methods(false), :notimplement)
|
||||
assert_include(Bug::NotImplement.instance_methods(false), :notimplement)
|
||||
assert_not_respond_to(Bug, :notimplement)
|
||||
assert_not_respond_to(Bug::NotImplement.new, :notimplement)
|
||||
end
|
||||
|
||||
def test_method_inspect_notimplement
|
||||
assert_match(/not-implemented/, Bug.method(:notimplement).inspect)
|
||||
assert_match(/not-implemented/, Bug::NotImplement.instance_method(:notimplement).inspect)
|
||||
end
|
||||
|
||||
def test_not_method_defined
|
||||
assert !Bug::NotImplement.method_defined?(:notimplement)
|
||||
assert !Bug::NotImplement.method_defined?(:notimplement, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue