From 23c2b8f6bb35d8a2af41c282ae02824e95c3fbd3 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 2 Mar 2017 12:02:33 -0500 Subject: Add `has_many` associations for models that can have Upload records --- spec/models/group_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/models/group_spec.rb') diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index a4e6eb4e3a6..eac3d962dd1 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -13,6 +13,7 @@ describe Group, models: true do it { is_expected.to have_many(:shared_projects).through(:project_group_links) } it { is_expected.to have_many(:notification_settings).dependent(:destroy) } it { is_expected.to have_many(:labels).class_name('GroupLabel') } + it { is_expected.to have_many(:uploads).dependent(:destroy) } describe '#members & #requesters' do let(:requester) { create(:user) } -- cgit v1.2.1