Commit 67c96972 authored by Nick Thomas's avatar Nick Thomas

Fix the #change_repository_storage tests to take account of schema changes in...

Fix the #change_repository_storage tests to take account of schema changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9597
parent 322080ea
...@@ -1962,7 +1962,11 @@ describe Project, models: true do ...@@ -1962,7 +1962,11 @@ describe Project, models: true do
FileUtils.mkdir('tmp/tests/storage_a') FileUtils.mkdir('tmp/tests/storage_a')
FileUtils.mkdir('tmp/tests/storage_b') FileUtils.mkdir('tmp/tests/storage_b')
storages = { 'a' => 'tmp/tests/storage_a', 'b' => 'tmp/tests/storage_b' } storages = {
'a' => { 'path' => 'tmp/tests/storage_a' },
'b' => { 'path' => 'tmp/tests/storage_b' },
}
allow(Gitlab.config.repositories).to receive(:storages).and_return(storages) allow(Gitlab.config.repositories).to receive(:storages).and_return(storages)
end end
......
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