summaryrefslogtreecommitdiff
path: root/spec/models/group_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-03-02 12:02:33 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-03-06 14:41:10 -0500
commit23c2b8f6bb35d8a2af41c282ae02824e95c3fbd3 (patch)
treea2683fd329be8eb0d7a12b0481447423f4fb6682 /spec/models/group_spec.rb
parent5c41338fa30b5795309957c71202b11a71cccef0 (diff)
downloadgitlab-ce-23c2b8f6bb35d8a2af41c282ae02824e95c3fbd3.tar.gz
Add `has_many` associations for models that can have Upload records
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb1
1 files changed, 1 insertions, 0 deletions
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) }