diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-21 16:12:11 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-21 16:12:11 +0300 |
commit | 56a54c62fba093ae53c8fef309454f38d3778b0f (patch) | |
tree | b322cf001890414daca65528ff1c12ec1a735f4d /spec/models/issue_spec.rb | |
parent | 73e3a1cd02c5d2bdaf03d5998ae12bc86de2fa75 (diff) |
Add confidential_only scop to issue model
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r-- | spec/models/issue_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 5d18e085a6f..6101df2e099 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -765,6 +765,15 @@ describe Issue do end end + describe '.confidential_only' do + it 'only returns confidential_only issues' do + create(:issue) + confidential_issue = create(:issue, confidential: true) + + expect(described_class.confidential_only).to eq([confidential_issue]) + end + end + it_behaves_like 'throttled touch' do subject { create(:issue, updated_at: 1.hour.ago) } end |