Ruby Access Control - Are Private And Protected Methods Only A Guideline?
skorks.com
skorks.com
(note : there are some ways to make things private in javascript as I wrote there : http://www.javascriptkata.com/2009/09/23/how-to-create-an-ob...)
class Object
private
def name
puts "Name called"
end
end
o = Object.new
o = o.send :name # outputs "Name called"
And therefore you can easily test private methods.