components
This commit is contained in:
parent
3b623e6b0c
commit
1e9b7fbbb6
3 changed files with 38 additions and 24 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue