Remove unused scopes in Account model (#35276)
This commit is contained in:
parent
194645aada
commit
b4a950c2fc
2 changed files with 0 additions and 16 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue