Class | Test::Unit::TestCase |
In: |
lib/eymiha/test/probe.rb
|
Parent: | Object |
probe is a surgical instrument useful for testing private methods. It takes a class and a list of instance methods and makes any of them that are private into public methods, yields control, and then changes them back to private. This allows testing of private methods with minimum exposure to any aberrations caused by a change in visibility.