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
nexedi
gitlab-shell
Commits
b9d086e9
Commit
b9d086e9
authored
Aug 14, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usages of `its` in specs
parent
268d23de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
16 deletions
+27
-16
spec/gitlab_net_spec.rb
spec/gitlab_net_spec.rb
+1
-1
spec/gitlab_shell_spec.rb
spec/gitlab_shell_spec.rb
+20
-12
spec/httpunix_spec.rb
spec/httpunix_spec.rb
+6
-3
No files found.
spec/gitlab_net_spec.rb
View file @
b9d086e9
...
...
@@ -381,7 +381,7 @@ describe GitlabNet, vcr: true do
allow
(
gitlab_net
.
send
(
:config
)).
to
receive
(
:http_settings
)
{
{
'self_signed_cert'
=>
true
}
}
end
it
s
(
:verify_mode
)
{
should
eq
(
OpenSSL
::
SSL
::
VERIFY_NONE
)
}
it
{
expect
(
subject
.
verify_mode
).
to
eq
(
OpenSSL
::
SSL
::
VERIFY_NONE
)
}
end
describe
'#http_request_for'
do
...
...
spec/gitlab_shell_spec.rb
View file @
b9d086e9
...
...
@@ -74,7 +74,7 @@ describe GitlabShell do
describe
:initialize
do
let
(
:ssh_cmd
)
{
'git-receive-pack'
}
it
s
(
:gl_id
)
{
should
==
gl_id
}
it
{
expect
(
subject
.
gl_id
).
to
eq
gl_id
}
end
describe
:parse_cmd
do
...
...
@@ -86,8 +86,10 @@ describe GitlabShell do
subject
.
send
:parse_cmd
,
ssh_args
end
its
(
:repo_name
)
{
should
==
'gitlab-ci.git'
}
its
(
:command
)
{
should
==
'git-upload-pack'
}
it
'has the correct attributes'
do
expect
(
subject
.
repo_name
).
to
eq
'gitlab-ci.git'
expect
(
subject
.
command
).
to
eq
'git-upload-pack'
end
end
context
'namespace'
do
...
...
@@ -98,8 +100,10 @@ describe GitlabShell do
subject
.
send
:parse_cmd
,
ssh_args
end
its
(
:repo_name
)
{
should
==
'dmitriy.zaporozhets/gitlab-ci.git'
}
its
(
:command
)
{
should
==
'git-upload-pack'
}
it
'has the correct attributes'
do
expect
(
subject
.
repo_name
).
to
eq
'dmitriy.zaporozhets/gitlab-ci.git'
expect
(
subject
.
command
).
to
eq
'git-upload-pack'
end
end
context
'with an invalid number of arguments'
do
...
...
@@ -137,9 +141,11 @@ describe GitlabShell do
subject
.
send
:parse_cmd
,
ssh_args
end
its
(
:repo_name
)
{
should
==
'dzaporozhets/gitlab.git'
}
its
(
:command
)
{
should
==
'git-lfs-authenticate'
}
its
(
:git_access
)
{
should
==
'git-upload-pack'
}
it
'has the correct attributes'
do
expect
(
subject
.
repo_name
).
to
eq
'dzaporozhets/gitlab.git'
expect
(
subject
.
command
).
to
eq
'git-lfs-authenticate'
expect
(
subject
.
git_access
).
to
eq
'git-upload-pack'
end
end
describe
'git-lfs old clients'
do
...
...
@@ -150,9 +156,11 @@ describe GitlabShell do
subject
.
send
:parse_cmd
,
ssh_args
end
its
(
:repo_name
)
{
should
==
'dzaporozhets/gitlab.git'
}
its
(
:command
)
{
should
==
'git-lfs-authenticate'
}
its
(
:git_access
)
{
should
==
'git-upload-pack'
}
it
'has the correct attributes'
do
expect
(
subject
.
repo_name
).
to
eq
'dzaporozhets/gitlab.git'
expect
(
subject
.
command
).
to
eq
'git-lfs-authenticate'
expect
(
subject
.
git_access
).
to
eq
'git-upload-pack'
end
end
end
...
...
@@ -446,7 +454,7 @@ describe GitlabShell do
context
'with a correct path'
do
before
{
subject
.
exec
(
ssh_cmd
)
}
it
s
(
:repo_path
)
{
should
==
repo_path
}
it
{
expect
(
subject
.
repo_path
).
to
eq
repo_path
}
end
context
"with a path that doesn't match an absolute path"
do
...
...
spec/httpunix_spec.rb
View file @
b9d086e9
...
...
@@ -7,9 +7,12 @@ describe URI::HTTPUNIX do
subject
{
uri
}
it
{
is_expected
.
to
be_an_instance_of
(
URI
::
HTTPUNIX
)
}
its
(
:scheme
)
{
should
eq
(
'http+unix'
)
}
its
(
:hostname
)
{
should
eq
(
'/path/to/socket'
)
}
its
(
:path
)
{
should
eq
(
'/img.jpg'
)
}
it
'has the correct attributes'
do
expect
(
subject
.
scheme
).
to
eq
(
'http+unix'
)
expect
(
subject
.
hostname
).
to
eq
(
'/path/to/socket'
)
expect
(
subject
.
path
).
to
eq
(
'/img.jpg'
)
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