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
5b9e7773
Commit
5b9e7773
authored
Jan 03, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add lock specs
parent
f8e1b44d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
spec/tasks/gitlab/git_rake_spec.rb
spec/tasks/gitlab/git_rake_spec.rb
+13
-0
No files found.
spec/tasks/gitlab/git_rake_spec.rb
View file @
5b9e7773
...
...
@@ -21,5 +21,18 @@ describe 'gitlab:git rake tasks' do
it
'outputs the right git command'
do
expect
{
run_rake_task
(
'gitlab:git:fsck'
)
}.
to
output
(
/Performed Checking integrity/
).
to_stdout
end
it
'errors out about config.lock issues'
do
FileUtils
.
touch
(
Settings
.
absolute
(
'tmp/tests/default_storage/@repo/1/2/test.git/config.lock'
))
expect
{
run_rake_task
(
'gitlab:git:fsck'
)
}.
to
output
(
/file exists\? ... yes/
).
to_stdout
end
it
'errors out about ref lock issues'
do
FileUtils
.
mkdir_p
(
Settings
.
absolute
(
'tmp/tests/default_storage/@repo/1/2/test.git/refs/heads'
))
FileUtils
.
touch
(
Settings
.
absolute
(
'tmp/tests/default_storage/@repo/1/2/test.git/refs/heads/blah.lock'
))
expect
{
run_rake_task
(
'gitlab:git:fsck'
)
}.
to
output
(
/Ref lock files exist:/
).
to_stdout
end
end
end
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