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/account_unfollow_controller_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/controllers/account_unfollow_controller_spec.rb') diff --git a/spec/controllers/account_unfollow_controller_spec.rb b/spec/controllers/account_unfollow_controller_spec.rb index 1f28bf4ab..a6c86d4b9 100644 --- a/spec/controllers/account_unfollow_controller_spec.rb +++ b/spec/controllers/account_unfollow_controller_spec.rb @@ -2,6 +2,7 @@ require 'rails_helper' describe AccountUnfollowController do render_views + let(:user) { Fabricate(:user) } let(:alice) { Fabricate(:account, username: 'alice') } -- cgit