1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec/fixtures/show_source_doc_examples.rb
Kyrylo Silin 175c0e950b ShowDocSpec: add a test concerning monkeypatching
Make sure that `show-doc` displays the comments of the original
definition by default. This test *must* fail with current state of
things. The goal is to eliminate the oddities in Pry across some Ruby
implementations.

For more information see:
d05233ecd3
2013-03-14 17:51:05 +02:00

22 lines
357 B
Ruby

# used by show_source_spec.rb and show_doc_spec.rb
class TestClassForShowSource
#doc
def alpha
end
end
class TestClassForShowSourceClassEval
def alpha
end
end
class TestClassForShowSourceInstanceEval
def alpha
end
end
# The first definition (find the second one in show_doc_spec.rb).
class TestClassForCandidatesOrder
def alpha
end
end