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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
18d97aa4
Commit
18d97aa4
authored
Apr 01, 2021
by
Mathias Neerup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move creation of test-project inside the test
parent
da6d2704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/requests/api/repositories_spec.rb
spec/requests/api/repositories_spec.rb
+2
-1
No files found.
spec/requests/api/repositories_spec.rb
View file @
18d97aa4
...
...
@@ -332,7 +332,6 @@ RSpec.describe API::Repositories do
describe
'GET /projects/:id/repository/compare'
do
let
(
:route
)
{
"/projects/
#{
project
.
id
}
/repository/compare"
}
let!
(
:public_project
)
{
create
(
:project
,
:repository
,
:public
)
}
shared_examples_for
'repository compare'
do
it
"compares branches"
do
...
...
@@ -394,6 +393,8 @@ RSpec.describe API::Repositories do
end
it
"compare commits between different projects"
do
public_project
=
create
(
:project
,
:repository
,
:public
)
get
api
(
route
,
current_user
),
params:
{
from:
sample_commit
.
parent_id
,
to:
sample_commit
.
id
,
from_project_id:
public_project
.
id
}
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
...
...
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