Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue-4364] add attached_images association to workflow copier #4369

Merged
merged 4 commits into from
Aug 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[issue-4364] validate attached image on copied workflow
Tooyosi committed Aug 1, 2024
commit 158c815fb293a94a36b4320bd07348269cf9867e
1 change: 1 addition & 0 deletions spec/lib/workflow_copier_spec.rb
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@
it 'copies the attached_images' do
yuenmichelle1 marked this conversation as resolved.
Show resolved Hide resolved
create(:medium, type: 'workflow_attached_image', linked: workflow)
expect(copied_workflow.attached_images.count).to eq(workflow.attached_images.count)
expect(copied_workflow.attached_images[0]).to be_valid
end

it 'sets the workflow to inactive to avoid releasing these on live projects' do