This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121735 - Default Unit Test Class Name of "Test" is Invalid
Summary: Default Unit Test Class Name of "Test" is Invalid
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Danek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-12 14:10 UTC by William Leonard
Modified: 2009-08-31 20:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Leonard 2007-11-12 14:10:44 UTC
The default unit test class name of "Test" is invalid. Trying to run a test created with the default name results in the
error:

/Users/bleonard/Temp/Blog/test/test.rb:11: Test is not a class (TypeError)
        from /Users/bleonard/Temp/Blog/test/test.rb:9:in `require'
        from /Users/bleonard/Temp/Blog/test/test.rb:9


To be consistent, I would change it to "TestNewClass", which would correctly create a test for the default name when a
new class is created, "NewClass".
Comment 1 Erno Mononen 2008-02-27 11:19:27 UTC
Should be easy to fix.
Comment 2 Tomas Danek 2009-08-28 14:04:19 UTC
i'll take it.
Comment 3 Tomas Danek 2009-08-28 14:05:32 UTC
fixed in ruby-main de2d09eb0483
Comment 4 Quality Engineering 2009-08-31 20:25:16 UTC
Integrated into 'main-golden', will be available in build *200908311509* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/de2d09eb0483
User: Tomas Musil <musilt2@netbeans.org>
Log: #121735: Default Unit Test Class Name of "Test" is Invalid