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
1
Merge Requests
1
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-ce
Commits
d5bb1593
Commit
d5bb1593
authored
Jan 25, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EE offenses to the RSpec/SingleLineHook cop
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
6dadc07c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
spec/ee/spec/models/geo_node_status_spec.rb
spec/ee/spec/models/geo_node_status_spec.rb
+3
-1
spec/lib/api/entities/geo_node_status_spec.rb
spec/lib/api/entities/geo_node_status_spec.rb
+6
-2
No files found.
spec/ee/spec/models/geo_node_status_spec.rb
View file @
d5bb1593
...
...
@@ -474,7 +474,9 @@ describe GeoNodeStatus, :geo do
end
describe
'#storage_shards_match?'
do
before
{
stub_primary_node
}
before
do
stub_primary_node
end
set
(
:status
)
{
create
(
:geo_node_status
)
}
let
(
:data
)
{
GeoNodeStatusSerializer
.
new
.
represent
(
status
).
as_json
}
...
...
spec/lib/api/entities/geo_node_status_spec.rb
View file @
d5bb1593
...
...
@@ -9,7 +9,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
subject
{
entity
.
as_json
}
before
{
stub_primary_node
}
before
do
stub_primary_node
end
describe
'#healthy'
do
context
'when node is healthy'
do
...
...
@@ -127,7 +129,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
end
context
'secondary Geo node'
do
before
{
stub_secondary_node
}
before
do
stub_secondary_node
end
it
{
is_expected
.
to
have_key
(
:storage_shards
)
}
it
{
is_expected
.
not_to
have_key
(
:storage_shards_match
)
}
...
...
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