aidy lewis wrote:
> If I write this
>
> <code>
> require 'test\unit'
>
> class Login < Test::Unit::TestCase
>
> end
>
> login = Login.new
> </code>
>
> I receive
>
> 'in `initialize': wrong number of arguments (0 for 1) (ArgumentError)'
>   
You will want to review the rdoc for test-unit: 
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/index.html

And specifically for Test::Unit::TestCase: 
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/TestCase.html

Thus:

require 'test\unit'

class Login < Test::Unit::TestCase
  def test_nothing
  end
end

login = Login.new 'test_nothing'


However, i still have no idea what you are trying to do. Why do you want 
to instantiate a test case?

Bret



_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to