# Can not test if model name is Tester in rails 2 (ArgumentError: wrong number of arguments (0 for 1)

**URL:** <https://www.ruby-forum.com/t/can-not-test-if-model-name-is-tester-in-rails-2-argumenterror-wrong-number-of-arguments-0-for-1/123487>\
**Category:** Rails\
**Created:** [December 18, 2007, 5:43am UTC](https://www.ruby-forum.com/t/can-not-test-if-model-name-is-tester-in-rails-2-argumenterror-wrong-number-of-arguments-0-for-1/123487 "2007-12-18T05:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gampolt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a87d85/32.png) [@gampolt](https://www.ruby-forum.com/u/gampolt)\
**Post date:** [December 18, 2007, 5:43am UTC](https://www.ruby-forum.com/t/can-not-test-if-model-name-is-tester-in-rails-2-argumenterror-wrong-number-of-arguments-0-for-1/123487/1 "2007-12-18T05:43:22Z")

</div>

I’m using rails 2.0.1 now. Here is the step for generate the error

1. Create rails project name demo  
“rails demo”
2. I create model name “Tester” using command  
“ruby script/generate model Tester name:string description:text”
3. create database (after change username and password)  
“rake db:create:all”
4. migrate database, both development and test  
“rake db:migrate”  
“rake db:migrate RAILS\_ENV=test”
5. unit test the tester model  
“ruby test/unit/tester\_test.rb”  
Here is the error i’ve got everytime  
D:\web\Sites\demo\>ruby test/unit/tester\_test.rb  
Loaded suite test/unit/tester\_test  
Started  
.E…  
Finished in 0.234 seconds.

1. Error:  
testers(ActionController::TestCase):  
ArgumentError: wrong number of arguments (0 for 1)  
D:/web/Sites/demo/vendor/rails/actionpack/lib/action\_controller/  
test\_case.rb:48:in `initialize' D:/web/Sites/demo/vendor/rails/actionpack/lib/action_controller/ test_case.rb:48:in`new’  
D:/web/Sites/demo/vendor/rails/actionpack/lib/action\_controller/  
test\_case.rb:48:in `setup_without_fixtures' D:/web/Sites/demo/vendor/rails/activerecord/lib/active_record/ fixtures.rb:979:in`full\_setup’  
D:/web/Sites/demo/vendor/rails/activerecord/lib/…/…/  
activesupport/lib/active\_support/testing/default.rb:7:in `run’

6 tests, 1 assertions, 0 failures, 1 errors

I don’t know how to fix this error (wrong number of arguments)

What i’ve tried is test when using other model name. e.g. Post,  
Comment, User, Image, …, etc. All of them not have this problem when  
test.  
Only model name as “Tester”  
And this model name is work fine in rail 1.2.6

Anyone known how to correct it plese help told me.  
Thank you in advance…
