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
Tatuya Kamada
gitlab-ce
Commits
3bcfdf07
Commit
3bcfdf07
authored
Jan 23, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update last sha of the commit in the test seed repository.
parent
c6b9767e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/models/project_spec.rb
spec/models/project_spec.rb
+4
-4
spec/seed_project.tar.gz
spec/seed_project.tar.gz
+0
-0
No files found.
spec/models/project_spec.rb
View file @
3bcfdf07
...
...
@@ -137,17 +137,17 @@ describe Project do
it
"should close merge request if last commit from source branch was pushed to target branch"
do
@merge_request
.
reloaded_commits
@merge_request
.
last_commit
.
id
.
should
==
"
b1e6a9dbf1c85e6616497a5e7bad9143a4bd0828
"
project
.
update_merge_requests
(
"8716fc78f3c65bbf7bcf7b574febd583bc5d2812"
,
"
b1e6a9dbf1c85e6616497a5e7bad9143a4bd0828
"
,
"refs/heads/stable"
,
@key
.
user
)
@merge_request
.
last_commit
.
id
.
should
==
"
69b34b7e9ad9f496f0ad10250be37d6265a03bba
"
project
.
update_merge_requests
(
"8716fc78f3c65bbf7bcf7b574febd583bc5d2812"
,
"
69b34b7e9ad9f496f0ad10250be37d6265a03bba
"
,
"refs/heads/stable"
,
@key
.
user
)
@merge_request
.
reload
@merge_request
.
merged?
.
should
be_true
end
it
"should update merge request commits with new one if pushed to source branch"
do
@merge_request
.
last_commit
.
should
==
nil
project
.
update_merge_requests
(
"8716fc78f3c65bbf7bcf7b574febd583bc5d2812"
,
"
b1e6a9dbf1c85e6616497a5e7bad9143a4bd0828
"
,
"refs/heads/master"
,
@key
.
user
)
project
.
update_merge_requests
(
"8716fc78f3c65bbf7bcf7b574febd583bc5d2812"
,
"
69b34b7e9ad9f496f0ad10250be37d6265a03bba
"
,
"refs/heads/master"
,
@key
.
user
)
@merge_request
.
reload
@merge_request
.
last_commit
.
id
.
should
==
"
b1e6a9dbf1c85e6616497a5e7bad9143a4bd0828
"
@merge_request
.
last_commit
.
id
.
should
==
"
69b34b7e9ad9f496f0ad10250be37d6265a03bba
"
end
end
...
...
spec/seed_project.tar.gz
View file @
3bcfdf07
No preview for this file type
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