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/controllers/projects/tags_controller_spec.rb')
-rw-r--r--spec/controllers/projects/tags_controller_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/controllers/projects/tags_controller_spec.rb b/spec/controllers/projects/tags_controller_spec.rb
index d0971e96910..3d1f8c12022 100644
--- a/spec/controllers/projects/tags_controller_spec.rb
+++ b/spec/controllers/projects/tags_controller_spec.rb
@@ -205,15 +205,13 @@ RSpec.describe Projects::TagsController do
before do
project.add_developer(user)
sign_in(user)
- end
-
- it 'deletes tag' do
request
+ end
- expect(response).to be_successful
- expect(response.body).to include("Tag was removed")
-
+ it 'deletes tag and redirects to tags path' do
expect(project.repository.find_tag(tag.name)).not_to be_present
+ expect(controller).to set_flash[:notice].to(/Tag was removed/)
+ expect(response).to redirect_to(project_tags_path(project))
end
end
end