Fix list import concurrently creating lists of the same name (#26372)
This commit is contained in:
parent
cd6f2b3cbc
commit
30c64bf616
2 changed files with 11 additions and 2 deletions
|
@ -161,6 +161,12 @@ RSpec.describe BulkImportRowService do
|
|||
end
|
||||
|
||||
include_examples 'common behavior'
|
||||
|
||||
it 'does not create a new list' do
|
||||
account.follow!(target_account)
|
||||
|
||||
expect { subject.call(import_row) }.to_not(change { List.where(title: 'my list').count })
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue