Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Unable to create any model and unit test that begin with the word 'Test'

#3524

After upgrading to rails 2.3.5 and running my tests the following error appears

test_fields(ActionView::TestCase):
TypeError: wrong argument type Class (expected Module)

After doing a bit of testing in a new application it looks like this error is thrown whenever a new model is generated beginning with the word 'test' and then the tests are run.

Reported by asherwood · November 30th, 2009 @ 07:48 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. asherwood
    asherwood
    • Tag changed from test to fixtures, test

    After further investigation into this, the problem is happening when there is a fixture that starts with the word test.

    December 21st, 2009 @ 11:22 AM

  2. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid
    • Importance changed from to

    Test is a reserved word.

    Although this list is old, it still has most of the reserved words: http://wiki.rubyonrails.org/rails/pages/reservedwords

    October 8th, 2010 @ 12:25 PM