summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2018-01-19 20:07:44 +0000
committerMark Fletcher <mark@gitlab.com>2018-01-19 20:07:44 +0000
commit5a160b05eda88728543a0a74a174fa5883877171 (patch)
treea22359f9e1a4f589cde5dc053c3ae22eca52bfd3 /spec/requests
parentee58763158ed10f12a8fe7c089257a532fe6e724 (diff)
downloadgitlab-ce-5a160b05eda88728543a0a74a174fa5883877171.tar.gz
Fix protected branches API to accept name parameter with dot
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/protected_branches_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/protected_branches_spec.rb b/spec/requests/api/protected_branches_spec.rb
index 10e6a3c07c8..1d23e023bb6 100644
--- a/spec/requests/api/protected_branches_spec.rb
+++ b/spec/requests/api/protected_branches_spec.rb
@@ -80,6 +80,12 @@ describe API::ProtectedBranches do
it_behaves_like 'protected branch'
end
+
+ context 'when protected branch contains a period' do
+ let(:protected_name) { 'my.feature' }
+
+ it_behaves_like 'protected branch'
+ end
end
context 'when authenticated as a guest' do