--- a/lib/gitlab/checks/change_access.rb+++ b/lib/gitlab/checks/change_access.rb@@ -115,3 +115,3 @@ module Gitlab if push_rule.deny_delete_tag && protected_tag?(tag_name(@ref)) && Gitlab::Git.blank_ref?(@newrev)- "You can not delete tag"+ return "You can not delete tag" end
My question is regarding the specs that I should add for this. This class currently has no specs, I found this regression while working on other changes on this file. For those changes I have a CE merge request to add specs for the behaviour there (see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5799, WIP) and I was planning to add the examples for the EE behaviour on top of that after it got merged, but since this is a regression, I don't know if I should create a spec file with only an example for this regression on the MR for this issue, or what should I do?