Change admin accounts default sort to most recent (#8813)
This commit is contained in:
parent
7fe137d2f7
commit
e645ae9561
6 changed files with 12 additions and 12 deletions
|
@ -2,10 +2,10 @@ require 'rails_helper'
|
|||
|
||||
describe AccountFilter do
|
||||
describe 'with empty params' do
|
||||
it 'defaults to alphabetic account list' do
|
||||
it 'defaults to recent account list' do
|
||||
filter = described_class.new({})
|
||||
|
||||
expect(filter.results).to eq Account.alphabetic
|
||||
expect(filter.results).to eq Account.recent
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -60,7 +60,7 @@ describe AccountFilter do
|
|||
end
|
||||
|
||||
describe 'that call account methods' do
|
||||
%i(local remote silenced recent suspended).each do |option|
|
||||
%i(local remote silenced alphabetic suspended).each do |option|
|
||||
it "delegates the #{option} option" do
|
||||
allow(Account).to receive(option).and_return(Account.none)
|
||||
filter = described_class.new({ option => true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue