Skip to content

Generated specs don't support namespacing (e.g. in an engine) #448

@whilefalse

Description

@whilefalse

The content of the generated files is not correct when working with namespaced things (models, controllers etc.)

For example, when working in an engine, the generated controller specs will fail because they contain:

describe ThingsController

instead of

describe MyEngine::ThingsController

There is a method in the generators called 'namespace' which returns an object or nil and can be used to add the namespace.

I'll look at writing a patch for this when I get some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions