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
Léo-Paul Géneau
gitlab-ce
Commits
7721e8df
Commit
7721e8df
authored
Dec 14, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spec
parent
26093586
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
spec/tasks/gitlab/git_rake_spec.rb
spec/tasks/gitlab/git_rake_spec.rb
+5
-9
No files found.
spec/tasks/gitlab/git_rake_spec.rb
View file @
7721e8df
...
@@ -4,9 +4,11 @@ describe 'gitlab:git rake tasks' do
...
@@ -4,9 +4,11 @@ describe 'gitlab:git rake tasks' do
before
do
before
do
Rake
.
application
.
rake_require
'tasks/gitlab/git'
Rake
.
application
.
rake_require
'tasks/gitlab/git'
st
ub_warn_user_is_not_gitlab
st
orages
=
{
'default'
=>
{
'path'
=>
Settings
.
absolute
(
'tmp/tests/default_storage'
)
}
}
FileUtils
.
mkdir
(
Settings
.
absolute
(
'tmp/tests/default_storage'
))
FileUtils
.
mkdir_p
(
Settings
.
absolute
(
'tmp/tests/default_storage/repo/test.git'
))
allow
(
Gitlab
.
config
.
repositories
).
to
receive
(
:storages
).
and_return
(
storages
)
stub_warn_user_is_not_gitlab
end
end
after
do
after
do
...
@@ -14,14 +16,8 @@ describe 'gitlab:git rake tasks' do
...
@@ -14,14 +16,8 @@ describe 'gitlab:git rake tasks' do
end
end
describe
'fsck'
do
describe
'fsck'
do
let
(
:storages
)
do
{
'default'
=>
{
'path'
=>
Settings
.
absolute
(
'tmp/tests/default_storage'
)
}
}
end
it
'outputs the right git command'
do
it
'outputs the right git command'
do
expect
(
Kernel
).
to
receive
(
:system
).
with
(
''
).
and_return
(
true
)
expect
{
run_rake_task
(
'gitlab:git:fsck'
)
}.
to
output
(
/Performed Checking integrity/
).
to_stdout
run_rake_task
(
'gitlab:git:fsck'
)
end
end
end
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