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.
Currently e.g. all the assert_* methods are shown in code completion for "normal" classes even when test/unit (or any other test framework) is not loaded. In general, the IDE should try to figure out what gems are actually loaded. But until that is implemented, the IDE should at least detect what methods should be displayed in test classes only.
Integrated into 'main-golden', will be available in build *200912170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5a68fe2766de User: Erno Mononen <emononen@netbeans.org> Log: First part (Rails projects only) for #177594 and #175531 - 177594: Show test related methods only in test classes - 175531: Only index the gems that are required - introduced separate boot and source classpath for tests - added the possibility to index only the gems listed by the rake gems task. this is for sources only; in tests the boot classpath still contains all the gems
Progress on this: in Rails apps there is now a possibility to explicitly specify the indexed gems separately for sources and tests, and by default test gems are excluded from the gems for sources.
Integrated into 'main-golden', will be available in build *201001271614* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/0f28c65da8c2 User: Erno Mononen <emononen@netbeans.org> Log: #177594 - Show test related methods only in test classes - introduced a utility class Gems for gem related utilities - fixed a bug when adding gems when no gems were yet defined