Ask a Question related to Ruby, Design and Development.
-
Brian Candler #1
Re: Test order in Test::Unit
On Sun, Jul 06, 2003 at 02:05:57AM +0900, Nathaniel Talbott wrote:
instance_eval is also extremely useful; it lets you get at instance>> > - Does Test::Unit have any method to test private methods?
> Have you tried using Object#send? It completely bypasses all access
> protection.
variables without accessors, as well as private methods.
class Foo
private
def foo
puts "Got it"
end
end
a = Foo.new
a.foo #=> NameError: private method `foo' called
a.instance_eval { foo } #=> "Got it"
Brian Candler Guest
-
Test::Unit non-auto-run test case?
I'm getting a handle on the Test::Unit library, and the automatically-running test case example was extremely simple to get running, but now I want... -
Test::Unit -- multiple errors in test method ???
Hi ! I have been writing some unit tests with Test::Unit. I've noted that when an assertion fails in a test method, the remaining assertions... -
Test::Unit in 1.8
So far I've noticed two changes in the Test::Unit included with 1.8. They've probably been in Test::Unit for I long time, but I'm just encountering... -
Method test::unit::TestSuite#<<(test)
Hi, I suggest to change the definition of this method slightly: current: # Adds the test to the suite. def <<(test) @tests << test end -
Test::Unit GUI
nathaniel@NOSPAMtalbott.ws (nathaniel@NOSPAMtalbott.ws) wrote: Hello Nathaniel! Have you considered to include gtk2 patch for Test::Unit...



Reply With Quote

