components

This commit is contained in:
Kara Diaby 2024-02-13 07:03:42 +00:00
parent 3b623e6b0c
commit 1e9b7fbbb6
3 changed files with 38 additions and 24 deletions

View file

@ -93,6 +93,14 @@ 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
end
def attach_to_champ(attached_file, champ)
attached_file.attach(
io: StringIO.new("x" * 2),