Skip to content

Commit

Permalink
CV2-5524: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Oct 30, 2024
1 parent ccd932d commit 0cba59d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/models/relationship_2_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def setup
end

test "should destroy relationships when project media is destroyed" do
pm = create_project_media project: @project
pm2 = create_project_media project: @project
pm3 = create_project_media project: @project
pm = create_project_media team: @team
pm2 = create_project_media team: @team
pm3 = create_project_media team: @team
create_relationship source_id: pm.id, target_id: pm2.id
create_relationship target_id: pm.id, source_id: pm3.id
create_relationship source_id: pm.id, target_id: pm3.id
assert_difference 'Relationship.count', -2 do
pm.destroy
end
Expand Down

0 comments on commit 0cba59d

Please sign in to comment.