Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e70cfdeb
Commit
e70cfdeb
authored
Aug 13, 2019
by
Armin Hohenegger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for empty ref_name to api commits spec
parent
20ac5e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
spec/requests/api/commits_spec.rb
spec/requests/api/commits_spec.rb
+7
-0
No files found.
spec/requests/api/commits_spec.rb
View file @
e70cfdeb
# coding: utf-8
require
'spec_helper'
require
'spec_helper'
require
'mime/types'
require
'mime/types'
...
@@ -126,6 +127,12 @@ describe API::Commits do
...
@@ -126,6 +127,12 @@ describe API::Commits do
end
end
end
end
context
"with empty ref_name parameter"
do
let
(
:route
)
{
"/projects/
#{
project_id
}
/repository/commits?ref_name="
}
it_behaves_like
'project commits'
end
context
"path optional parameter"
do
context
"path optional parameter"
do
it
"returns project commits matching provided path parameter"
do
it
"returns project commits matching provided path parameter"
do
path
=
'files/ruby/popen.rb'
path
=
'files/ruby/popen.rb'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment