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/requests/api/issues/post_projects_issues_spec.rb')
-rw-r--r--spec/requests/api/issues/post_projects_issues_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/requests/api/issues/post_projects_issues_spec.rb b/spec/requests/api/issues/post_projects_issues_spec.rb
index 7305da1305a..265091fa698 100644
--- a/spec/requests/api/issues/post_projects_issues_spec.rb
+++ b/spec/requests/api/issues/post_projects_issues_spec.rb
@@ -432,11 +432,7 @@ RSpec.describe API::Issues, feature_category: :team_planning do
}
end
- context 'when allow_possible_spam feature flag is false' do
- before do
- stub_feature_flags(allow_possible_spam: false)
- end
-
+ context 'when allow_possible_spam application setting is false' do
it 'does not create a new project issue' do
expect { post_issue }.not_to change(Issue, :count)
end
@@ -454,7 +450,11 @@ RSpec.describe API::Issues, feature_category: :team_planning do
end
end
- context 'when allow_possible_spam feature flag is true' do
+ context 'when allow_possible_spam application setting is true' do
+ before do
+ stub_application_setting(allow_possible_spam: true)
+ end
+
it 'does creates a new project issue' do
expect { post_issue }.to change(Issue, :count).by(1)
end