What\'s the best way to unit test protected and private methods in Ruby, using the standard Ruby Test::Unit framework?
Test::Unit
I\'m sure somebody will pipe up a
Here's one easy way if you use RSpec:
before(:each) do MyClass.send(:public, *MyClass.protected_instance_methods) end