chore(attachment): remove unused replace code

This commit is contained in:
Paul Chavard 2024-03-25 15:13:14 +01:00
parent 536a03bbb4
commit f589129ef5
12 changed files with 11 additions and 126 deletions

View file

@ -93,18 +93,6 @@ RSpec.describe Attachment::MultipleComponent, type: :component do
end
end
context 'when user can replace' do
let(:kwargs) { { user_can_replace: true } }
before do
attach_to_champ(attached_file, champ)
end
it 'setup controller' do
expect(subject).to have_selector('[data-controller=replace-attachment]').once
end
end
def attach_to_champ(attached_file, champ)
attached_file.attach(
io: StringIO.new("x" * 2),