Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
Kazuhiko Shiozaki
gitlab-shell
Commits
6c12bf39
Commit
6c12bf39
authored
Feb 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more git-annex tests
parent
db77a612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
spec/gitlab_shell_spec.rb
spec/gitlab_shell_spec.rb
+9
-1
No files found.
spec/gitlab_shell_spec.rb
View file @
6c12bf39
...
...
@@ -185,6 +185,15 @@ describe GitlabShell do
subject
.
should_not_receive
(
:exec_cmd
)
end
end
describe
'git-annex'
do
before
{
ssh_cmd
'git-annex-shell commit /~/gitlab-ci.git SHA256'
}
after
{
subject
.
exec
}
it
"should execute the command"
do
subject
.
should_receive
(
:exec_cmd
).
with
(
"git-annex-shell"
,
"commit"
,
File
.
join
(
tmp_repos_path
,
'gitlab-ci.git'
),
"SHA256"
)
end
end
end
describe
:validate_access
do
...
...
@@ -232,5 +241,4 @@ describe GitlabShell do
def
ssh_cmd
(
cmd
)
ENV
[
'SSH_ORIGINAL_COMMAND'
]
=
cmd
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