Skip to content

Helper specs should work with engine routes. #1250

Open
@jcoyne

Description

@jcoyne

currently I'm getting an error:

undefined method `folders_path' for #<#<Class:0x007fbaa7f1a400>:0x007fbaa894d4b8>

I'd like to be able to add routes like we do in Controller specs:

routes { MyEngine::Engine.routes }

Currently that doesn't work in helper specs:

undefined method `routes' for RSpec::ExampleGroups::MyEngine::FooHelper::Class

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