diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-24 12:11:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-24 12:11:20 +0300 |
commit | a19e3ec8e8545d5a6b275bab3e5ea8b0cc707449 (patch) | |
tree | fe01e7e8080f0505f476bd420352d1bf79c8ef17 /spec/services | |
parent | 3368cc98aff2a2261c5dea9887e626836864000a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index c4012e2a98f..c4ad4039b45 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -539,21 +539,6 @@ RSpec.describe Issues::UpdateService, :mailer, feature_category: :team_planning end end end - - it 'verifies the number of queries' do - update_issue(description: "- [ ] Task 1 #{user.to_reference}") - - baseline = ActiveRecord::QueryRecorder.new do - update_issue(description: "- [x] Task 1 #{user.to_reference}") - end - - recorded = ActiveRecord::QueryRecorder.new do - update_issue(description: "- [x] Task 1 #{user.to_reference}\n- [ ] Task 2 #{user.to_reference}") - end - - expect(recorded.count).to eq(baseline.count) - expect(recorded.cached_count).to eq(0) - end end context 'when description changed' do |