From: "Mattias A." Date: 2012-12-29T21:49:02+09:00 Subject: require "test/unit" Hi, When i run my script without require "test/unit" it runs well. But i have noticed that many use require "test/unit" and < Test::Unit::TestCase in theirs scripts. So i just added it to see whats happens but it complains about wrong number of arguments. Do someone have any knowledge or url that it explains it for me? -error output- C:/Ruby193/lib/ruby/1.9.1/minitest/unit.rb:971:in `initialize': wrong number of arguments (0 for 1) (ArgumentError) from C:/RubyWorkspace/LogIn.rb:27:in `new' from C:/RubyWorkspace/LogIn.rb:27:in `
' -Code: Wrong number of arguments- require "selenium-webdriver" require "test/unit" class LogIn < Test::Unit::TestCase ... end -Code: works- require "selenium-webdriver" class LogIn ... end Best Regards Mattias -- Posted via http://www.ruby-forum.com/.