Remove unused scopes in Account model (#35276)

This commit is contained in:
Matt Jankowski 2025-07-07 04:07:01 -04:00 committed by Claire
commit b4a950c2fc
2 changed files with 0 additions and 16 deletions

View file

@ -640,19 +640,6 @@ RSpec.describe Account do
end
end
describe 'alphabetic' do
it 'sorts by alphabetic order of domain and username' do
matches = [
{ username: 'a', domain: 'a' },
{ username: 'b', domain: 'a' },
{ username: 'a', domain: 'b' },
{ username: 'b', domain: 'b' },
].map(&method(:Fabricate).curry(2).call(:account))
expect(described_class.without_internal.alphabetic).to eq matches
end
end
describe 'matches_display_name' do
it 'matches display name which starts with the given string' do
match = Fabricate(:account, display_name: 'pattern and suffix')