chore(attachment): remove unused replace code
This commit is contained in:
parent
536a03bbb4
commit
f589129ef5
12 changed files with 11 additions and 126 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue