More controller specs (#2561)

* Add render_views in more places

* Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user

* Use actual account instances in authorize follow controller spec
This commit is contained in:
Matt Jankowski authored and Eugen Rochko committed 2017-04-28 15:12:37 +02:00
1 parent 0e2589867f
commit 9566893cc9
24 files changed
+53 -7

No files matched your search

@@ -1,6 +1,8 @@
require 'rails_helper'
describe Admin::SuspensionsController do
render_views
let(:account) { Fabricate(:account) }
before do
sign_in Fabricate(:user, admin: true), scope: :user