# Test Problem with model name "Tester"

**URL:** <https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838>\
**Category:** Rails\
**Created:** [December 21, 2007, 5:09am UTC](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838 "2007-12-21T05:09:44Z")\
**Posts on this page:** 3\
**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 21, 2007, 5:09am UTC](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838/1 "2007-12-21T05:09:44Z")

</div>

I’m using rails 2.0.2 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

---

<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 21, 2007, 5:20am UTC](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838/2 "2007-12-21T05:20:15Z")

</div>

Perhaps use a different word other than Tester if it’s going to cause  
issues?

> **[TESTER Synonyms: 77 Synonyms & Antonyms for TESTER | Thesaurus.com](https://www.thesaurus.com/browse/Tester?r=76)**
>
> Find 77 ways to say TESTER, along with antonyms, related words, and example sentences at Thesaurus.com, the world's most trusted free thesaurus.

On Dec 21, 2007 2:39 PM, gampolt [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> “rake db:migrate RAILS\_ENV=test”  
> testers(ActionController::TestCase):  
> activesupport/lib/active\_support/testing/default.rb:7:in `run’  
> And this model name is work fine in rail 1.2.6
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

---

<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:** [January 1, 2008, 12:10am UTC](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838/3 "2008-01-01T00:10:46Z")

</div>

I’ve got the same problem in Rails 2.0.2. Model name is Testimonial.  
Site works fine but tests get confused.

So, does anyone have ideas for an alternate word?

If it worked in Rails 1.x then it sounds like a regression in Rails  
2.0.

Matt
