diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-01 14:26:45 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-07 16:36:25 +0300 |
commit | 7d2859e98bd58f6a3b11db6718fe63d95f692b06 (patch) | |
tree | 01e976eb640364a6ac2679c2b182fc6aa0cb934f /spec | |
parent | 7e7f260dc54c7643e8d7ec8bf3fbded3dfc06fcc (diff) |
Leverage user_contributed_projects to find recent events.
Closes #40525.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 00b5226d874..5680eb24985 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -27,7 +27,6 @@ describe User do it { is_expected.to have_many(:keys).dependent(:destroy) } it { is_expected.to have_many(:deploy_keys).dependent(:destroy) } it { is_expected.to have_many(:events).dependent(:destroy) } - it { is_expected.to have_many(:recent_events).class_name('Event') } it { is_expected.to have_many(:issues).dependent(:destroy) } it { is_expected.to have_many(:notes).dependent(:destroy) } it { is_expected.to have_many(:merge_requests).dependent(:destroy) } |