Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Controller option doesn't work (Devise current_user issues) #8

@sfcgeorge

Description

@sfcgeorge

There is a controller option you can pass to hyper-spec mount but it doesn't seem to work properly. The default hyper-spec controller doesn't inherit from your app's ApplicationController so you won't have access to any custom methods, Devise current_user or Hyperloop acting_user. Basically unless you're testing a very simple public component the default test controller setup won't work for you.

The workaround for now is to pre-define ReactTesrtController somewhere and make it inherit from your ApplicationController:

class ::ReactTestController < ApplicationController
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions