From 9566893cc973671f151ceabf266d260ebba57492 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 28 Apr 2017 09:12:37 -0400 Subject: 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 --- spec/controllers/admin/pubsubhubbub_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/controllers/admin/pubsubhubbub_controller_spec.rb') diff --git a/spec/controllers/admin/pubsubhubbub_controller_spec.rb b/spec/controllers/admin/pubsubhubbub_controller_spec.rb index 068bd09a6..c2bab5dac 100644 --- a/spec/controllers/admin/pubsubhubbub_controller_spec.rb +++ b/spec/controllers/admin/pubsubhubbub_controller_spec.rb @@ -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 -- cgit