Plugin controller spec: Plugin routes are not drawn

I’m not sure what you’re doing wrong from your example code, but we have plugins that draw routes and then test them:

and

https://github.com/discourse/discourse-akismet/blob/master/spec/requests/admin_mod_queue_controller_spec.rb#L14

I would try to pare down your code until it works.