summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicael.bergeron <micael.bergeron@solutionstlm.com>2017-09-12 08:09:52 -0400
committermicael.bergeron <micael.bergeron@solutionstlm.com>2017-09-12 08:09:52 -0400
commitee87994a825c059527d02cf394ce1d2159d8fc42 (patch)
treeb0b2114cd56caf99f4c582f1867e54526eac8ae6
parentfd41b3287d1334f3fb83d9da36a7c73a2484cba2 (diff)
downloadgitlab-ce-37025-error-500-in-non-utf8-branch-names.tar.gz
-rw-r--r--spec/controllers/projects/branches_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/branches_controller_spec.rb b/spec/controllers/projects/branches_controller_spec.rb
index f897f1a1858..5e0b57e9b2e 100644
--- a/spec/controllers/projects/branches_controller_spec.rb
+++ b/spec/controllers/projects/branches_controller_spec.rb
@@ -368,12 +368,12 @@ describe Projects::BranchesController do
end
end
- context 'when repo contains an invalid UTF-8 sequence' do
+ context 'when branch contains an invalid UTF-8 sequence' do
before do
project.repository.create_branch("wrong-\xE5-utf8-sequence")
end
- it 'strips out invalid characters' do
+ it 'return with a status 200' do
get :index,
namespace_id: project.namespace,
project_id: project,