From: Bernhard Brodowsky Date: 2010-04-07T09:26:20+09:00 Subject: Visibility in tests Hi, I'm new to this, forum, but I really love Ruby and I hope this is the right place to discuss problems and questions I have. I learned Ruby when I was twelve, so I know Ruby for more than one third of my life and I now call it my "mother tongue" of programming languages, but I mostly programmed rather childish stuff and for a long time, I was not interested in learning more than the basic stuff, since I could just do everything I wanted with that already. However, in the last few months, my Ruby programming has grown a little more serious, and (among other things) I started for example to write tests for all of my programs that included more than 100 lines, even for private purposes. Usually that went quite well, but there stumbling block in my way that annoyed me multiple times, so I decided to ask some people who maybe know a little more about Ruby. I don't know how to apply unit tests to private methods. Usually, I only use very few private methods and for my small private purposes, it was okay to just set those few to public, too, but how do you do that in a good way, if you really do have good reasons for making the methods private? Another small question: Do you know where I can find Ruby style guidelines or something like that? -- Posted via http://www.ruby-forum.com/.