Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/system_notes/issuables_service_spec.rb')
-rw-r--r--spec/services/system_notes/issuables_service_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/services/system_notes/issuables_service_spec.rb b/spec/services/system_notes/issuables_service_spec.rb
index 477f9eae39e..c3b3c877583 100644
--- a/spec/services/system_notes/issuables_service_spec.rb
+++ b/spec/services/system_notes/issuables_service_spec.rb
@@ -157,7 +157,18 @@ describe ::SystemNotes::IssuablesService do
describe '#change_status' do
subject { service.change_status(status, source) }
+ context 'when resource state event tracking is enabled' do
+ let(:status) { 'reopened' }
+ let(:source) { nil }
+
+ it { is_expected.to be_nil }
+ end
+
context 'with status reopened' do
+ before do
+ stub_feature_flags(track_resource_state_change_events: false)
+ end
+
let(:status) { 'reopened' }
let(:source) { nil }
@@ -169,6 +180,10 @@ describe ::SystemNotes::IssuablesService do
end
context 'with a source' do
+ before do
+ stub_feature_flags(track_resource_state_change_events: false)
+ end
+
let(:status) { 'opened' }
let(:source) { double('commit', gfm_reference: 'commit 123456') }