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:
authorShinya Maeda <shinya@gitlab.com>2019-03-25 10:41:38 +0300
committerShinya Maeda <shinya@gitlab.com>2019-03-26 15:10:31 +0300
commitb27c4420c9e62ffc8cf53a4a854f4907454af400 (patch)
tree2390248510be0e40eb8cd59b80d27fe973b75f9a /spec/services/releases
parentb4de23a687d16c96f1adaa456e4aeaac64d9cb23 (diff)
Destroy releases when delete a tag
ok ok ok ok
Diffstat (limited to 'spec/services/releases')
-rw-r--r--spec/services/releases/destroy_service_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/services/releases/destroy_service_spec.rb b/spec/services/releases/destroy_service_spec.rb
index dd5b8708f36..28663ca8853 100644
--- a/spec/services/releases/destroy_service_spec.rb
+++ b/spec/services/releases/destroy_service_spec.rb
@@ -28,13 +28,11 @@ describe Releases::DestroyService do
end
end
- context 'when tag is not found' do
+ context 'when tag does not exist in the repository' do
let(:tag) { 'v1.1.1' }
- it 'returns an error' do
- is_expected.to include(status: :error,
- message: 'Tag does not exist',
- http_status: 404)
+ it 'removes the orphaned release' do
+ expect { subject }.to change { project.releases.count }.by(-1)
end
end