diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-10-05 20:06:31 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-10-05 20:06:31 +0300 |
commit | dd6a24d4e746ff65800a5a06374a2f8c0b8a91dd (patch) | |
tree | 4ffc46a0385305575028cf48a1d60115cd1d4ddf /spec/models/project_spec.rb | |
parent | 5c8c33c92dbc9afba077e4ae54a7bce39b591f68 (diff) | |
parent | c36544de9fa07f9d9aaa162a7c70a9dc644ae23b (diff) | |
download | gitlab-ce-revert-c676283b.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into revert-c676283b-existingrevert-c676283b
# Conflicts:
# app/assets/javascripts/dispatcher.js
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 3ab5ac78bba..e52d4aaf884 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -824,6 +824,14 @@ describe Project, models: true do expect(subject).to eq([project2, project1]) end end + + it 'does not take system notes into account' do + 10.times do + create(:note_on_commit, project: project2, system: true) + end + + expect(described_class.trending.to_a).to eq([project1, project2]) + end end describe '.visible_to_user' do |