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
17dab64a
Commit
17dab64a
authored
Sep 16, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve gitlab config tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d9519573
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
spec/gitlab_config_spec.rb
spec/gitlab_config_spec.rb
+11
-5
No files found.
spec/gitlab_config_spec.rb
View file @
17dab64a
...
@@ -46,11 +46,6 @@ eos
...
@@ -46,11 +46,6 @@ eos
describe
:redis_command
do
describe
:redis_command
do
subject
{
config
.
redis_command
}
subject
{
config
.
redis_command
}
it
{
should
be_an
(
Array
)
}
it
{
should
include
(
config
.
redis
[
'host'
])
}
it
{
should
include
(
config
.
redis
[
'bin'
])
}
it
{
should
include
(
config
.
redis
[
'port'
].
to_s
)
}
context
"with empty redis config"
do
context
"with empty redis config"
do
before
do
before
do
config
.
stub
(
:redis
)
{
{}
}
config
.
stub
(
:redis
)
{
{}
}
...
@@ -60,6 +55,17 @@ eos
...
@@ -60,6 +55,17 @@ eos
it
{
should
include
(
'redis-cli'
)
}
it
{
should
include
(
'redis-cli'
)
}
end
end
context
"with host and port"
do
before
do
config
.
stub
(
:redis
)
{
{
'host'
=>
'localhost'
,
'port'
=>
1123
,
'bin'
=>
'/usr/bin/redis-cli'
}
}
end
it
{
should
be_an
(
Array
)
}
it
{
should
include
(
config
.
redis
[
'host'
])
}
it
{
should
include
(
config
.
redis
[
'bin'
])
}
it
{
should
include
(
config
.
redis
[
'port'
].
to_s
)
}
end
context
"with redis socket"
do
context
"with redis socket"
do
let
(
:socket
)
{
'/tmp/redis.socket'
}
let
(
:socket
)
{
'/tmp/redis.socket'
}
before
do
before
do
...
...
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