0
0
Fork 0

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 2017-04-28 09:12:37 -04:00 committed by Eugen Rochko
parent 0e2589867f
commit 9566893cc9
24 changed files with 53 additions and 7 deletions

View file

@ -1,6 +1,7 @@
require 'rails_helper'
RSpec.describe Settings::ProfilesController, type: :controller do
render_views
before do
sign_in Fabricate(:user), scope: :user