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

@ -2,6 +2,8 @@
require 'rails_helper'
RSpec.describe Admin::PubsubhubbubController, type: :controller do
render_views
describe 'GET #index' do
before do
sign_in Fabricate(:user, admin: true), scope: :user