Forum: Ruby Re: undefined method `add_assertion' for nil:NilClass

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Paatsch, Bernd (Guest)
on 2006-03-23 23:15
(Received via mailing list)
I found my problem.

I added following two lines to my code in my include section, which is
the begin of my main program:

    require 'test/unit/assertions'
    include Test::Unit::Assertions

This solved all my assert problems in my code.

This topic is locked and can not be replied to.