diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-28 09:12:37 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-28 15:12:37 +0200 |
commit | 9566893cc973671f151ceabf266d260ebba57492 (patch) | |
tree | 1f575905b552ba758a08300b96c91122e3ef6dc4 /spec/controllers/admin/accounts_controller_spec.rb | |
parent | 0e2589867f2a54fe9a71c20560d90d7f77c12bd3 (diff) |
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
Diffstat (limited to 'spec/controllers/admin/accounts_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin/accounts_controller_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/admin/accounts_controller_spec.rb b/spec/controllers/admin/accounts_controller_spec.rb index 47b1267e8..305260475 100644 --- a/spec/controllers/admin/accounts_controller_spec.rb +++ b/spec/controllers/admin/accounts_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' RSpec.describe Admin::AccountsController, type: :controller do + render_views + before do sign_in Fabricate(:user, admin: true), scope: :user end |