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
b99bc5d4
Commit
b99bc5d4
authored
May 09, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test password
parent
7f7359b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
spec/gitlab_net_spec.rb
spec/gitlab_net_spec.rb
+14
-0
No files found.
spec/gitlab_net_spec.rb
View file @
b99bc5d4
...
@@ -257,6 +257,20 @@ describe GitlabNet, vcr: true do
...
@@ -257,6 +257,20 @@ describe GitlabNet, vcr: true do
end
end
end
end
context
"with password"
do
it
'uses the specified host, port, and password'
do
allow
(
gitlab_net
).
to
receive
(
:config
).
and_return
(
config
)
allow
(
config
).
to
receive
(
:redis
).
and_return
(
{
'host'
=>
'localhost'
,
'port'
=>
1123
,
'pass'
=>
'secret'
}
)
expect_any_instance_of
(
Redis
).
to
receive
(
:initialize
).
with
({
host:
'localhost'
,
port:
1123
,
db:
0
,
password:
'secret'
}).
and_call_original
gitlab_net
.
redis_client
end
end
context
"with redis socket"
do
context
"with redis socket"
do
let
(
:socket
)
{
'/tmp/redis.socket'
}
let
(
:socket
)
{
'/tmp/redis.socket'
}
...
...
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