diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-12-05 21:48:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 21:48:39 +0100 |
commit | 0fb9536d3888cd7b6013c239d5be85f095a6e8ad (patch) | |
tree | 6069121c5535398eeeb65c8ad082d8176f100ab3 /spec/controllers | |
parent | 2e2ea6bb6b409a706c6e76ed63307a2a1f4f1ae7 (diff) |
Add batch suspend for accounts in admin UI (#17009)
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/accounts_controller_spec.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/spec/controllers/admin/accounts_controller_spec.rb b/spec/controllers/admin/accounts_controller_spec.rb index 608606ff9..a5ef396ae 100644 --- a/spec/controllers/admin/accounts_controller_spec.rb +++ b/spec/controllers/admin/accounts_controller_spec.rb @@ -21,12 +21,9 @@ RSpec.describe Admin::AccountsController, type: :controller do expect(AccountFilter).to receive(:new) do |params| h = params.to_h - expect(h[:local]).to eq '1' - expect(h[:remote]).to eq '1' + expect(h[:origin]).to eq 'local' expect(h[:by_domain]).to eq 'domain' - expect(h[:active]).to eq '1' - expect(h[:silenced]).to eq '1' - expect(h[:suspended]).to eq '1' + expect(h[:status]).to eq 'active' expect(h[:username]).to eq 'username' expect(h[:display_name]).to eq 'display name' expect(h[:email]).to eq 'local-part@domain' @@ -36,12 +33,9 @@ RSpec.describe Admin::AccountsController, type: :controller do end get :index, params: { - local: '1', - remote: '1', + origin: 'local', by_domain: 'domain', - active: '1', - silenced: '1', - suspended: '1', + status: 'active', username: 'username', display_name: 'display name', email: 'local-part@domain', |