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
8040170a
Commit
8040170a
authored
Dec 25, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec failures
parent
89471e30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/storage_shard.rb
app/models/storage_shard.rb
+1
-1
spec/models/storage_shard_spec.rb
spec/models/storage_shard_spec.rb
+1
-1
No files found.
app/models/storage_shard.rb
View file @
8040170a
...
...
@@ -25,6 +25,6 @@ class StorageShard
end
def
self
.
allowed_params
return
%i(name path gitaly_address gitaly_token)
.
freeze
%i(name path gitaly_address gitaly_token)
.
freeze
end
end
spec/models/storage_shard_spec.rb
View file @
8040170a
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
StorageShard
do
describe
'.current_shards'
do
it
'returns an array of StorageShard objects'
do
shards
=
described_class
.
current_shards
shards
=
described_class
.
all
expect
(
shards
.
count
).
to
eq
(
Settings
.
repositories
.
storages
.
count
)
expect
(
shards
.
map
(
&
:name
)).
to
match_array
(
Settings
.
repositories
.
storages
.
keys
)
...
...
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