diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-11-09 22:34:21 +0300 |
---|---|---|
committer | George Andrinopoulos <geoandri@gmail.com> | 2017-11-11 22:06:28 +0300 |
commit | 3963f91ee355e26778dc6a6ccfd844af3cee194f (patch) | |
tree | 85001816be7b8c629e74ebf8118cd83dc0fa1e06 /spec/models/issue_spec.rb | |
parent | d180affa210bd6e5474746bcfed006cee9d3730e (diff) |
Move update_project_counter_caches? out of issue and merge request
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r-- | spec/models/issue_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index bb5033c1628..5f901262598 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -765,22 +765,4 @@ describe Issue do expect(described_class.public_only).to eq([public_issue]) end end - - describe '#update_project_counter_caches?' do - it 'returns true when the state changes' do - subject.state = 'closed' - - expect(subject.update_project_counter_caches?).to eq(true) - end - - it 'returns true when the confidential flag changes' do - subject.confidential = true - - expect(subject.update_project_counter_caches?).to eq(true) - end - - it 'returns false when the state or confidential flag did not change' do - expect(subject.update_project_counter_caches?).to eq(false) - end - end end |