Hi, I have an error: "undefined method `add_assertion' for nil:NilClass (NoMethodError)" for the following code:
require 'rubygems' require 'test/unit' require 'spec/test/unit' class SomeTests < Test::Unit::TestCase def initialize(formObject) @object = formObject end def Validate() if assert(@object) puts 'success' else puts 'fail' end end end I found some threads that to add require "test/unit/assertions" and include Test::Unit::Assertions but a new error has introduced "private method `add_assertion' called for nil:NilClass (NoMethodError) which i could not find any solution on this area. I have no out of idea. Some one please help Thanks in advance Ivan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com