Hmmm does anyone have any suggestions for a best practice to rspec unit test a new api endpoint that’s behind doorkeeper? The docs are pretty out of date #ruby #rspec #doorkeeper just trying to make a super basic pattern and will update the wiki on GitHub.
Found a basic way to do this if anyone is interested… just add a `before` block to your tests that stubs out the controller, allowing it to receive your doorkeeer token and return a double with `acceptable?` set to true. Will post a gist later after work
@yarotheslav ^ is this sloppy as hell or would you do the same in a pinch? 😂
bypass doorkeeper for rspec testing of controller

bypass doorkeeper for rspec testing of controller - test_spec.rb

Gist