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

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

Open
sfcgeorge opened this issue Dec 14, 2017 · 0 comments
Open

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

sfcgeorge opened this issue Dec 14, 2017 · 0 comments

Comments

@sfcgeorge
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant