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:
authorTimothy Andrew <mail@timothyandrew.net>2016-04-19 06:52:55 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-04-19 06:52:55 +0300
commitf801e2243dcce6d3bdce01acf62fbf5a49a301da (patch)
treee5c4c364f5133ab530581e5da250d5f787390a4a /spec/models/issue_spec.rb
parentaa396ae5ee5715c1a2a8a82731cef6e3d7f73056 (diff)
A new branch created for a confidential issue is named `<id>-confidential-issue`.
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r--spec/models/issue_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index da1c673653a..060e6599104 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -248,7 +248,7 @@ describe Issue, models: true do
it "does not contain the issue title if confidential" do
issue = create(:issue, title: 'testing-issue', confidential: true)
- expect(issue.to_branch_name).to match /\Aissue/
+ expect(issue.to_branch_name).to match /confidential-issue\z/
end
end
end