Commit 8040170a authored by Stan Hu's avatar Stan Hu

Fix spec failures

parent 89471e30
......@@ -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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment