diff options
| author | Rémy Coutable <remy@rymai.me> | 2015-09-28 16:00:53 +0200 |
|---|---|---|
| committer | rymai <remy@rymai.me> | 2015-09-29 21:11:51 +0200 |
| commit | 5f95a5e070c76c582a2b394377b0f350f4b1cff9 (patch) | |
| tree | 94ae75916155f0337b8981cab1d04e563c8e24af /spec/models | |
| parent | 10c036fcf59297663fd1121f7b48d1a289a2e312 (diff) | |
| download | gitlab-ce-5f95a5e070c76c582a2b394377b0f350f4b1cff9.tar.gz | |
Disable the "Report abuse" button if a user has already been reported
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/user_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 480950859a2..6342c3b8d13 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -73,6 +73,7 @@ describe User do describe 'associations' do it { is_expected.to have_one(:namespace) } + it { is_expected.to have_one(:abuse_report) } it { is_expected.to have_many(:snippets).class_name('Snippet').dependent(:destroy) } it { is_expected.to have_many(:project_members).dependent(:destroy) } it { is_expected.to have_many(:groups) } |
