From: "Derrick B." Date: 2013-01-05T05:07:00+09:00 Subject: Re: require "test/unit" unknown wrote in post #1091069: > Am 04.01.2013 19:48, schrieb Derrick B.: >> So, I think (and I am guessing here) that your test files should only >> include classes to be tested and the actual testing class. That would > > Defining the class to be tested in the test file does not make > any sense, since you want to use your class elsewhere, and not only > in tests. You would define it in a separate file and require it > (with `require' or `require_relative'). You're right, I should not have stated that in that way, but my main point was directly related to how I thought the OP was adding the test class into the current code, and not separately. He was receiving an error, which I also encountered, so I gave my solution. Thank you for the clarification on proper test class usage. It should help me, and the OP, to steer away from such errors by separating the code. -- Posted via http://www.ruby-forum.com/.