Skip to content

Commit

Permalink
add test for public_methods(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jun 17, 2016
1 parent 8764bd2 commit 8a15ab0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/t/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ class NoInspectClass

assert('Kernel#public_methods', '15.3.1.3.38') do
assert_equal Array, public_methods.class
class Foo
def foo
end
end
assert_equal [:foo], Foo.new.public_methods(false)
end

# Kernel#puts is defined in mruby-print mrbgem. '15.3.1.3.39'
Expand Down

0 comments on commit 8a15ab0

Please sign in to comment.