diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-10 14:01:20 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-10 14:03:21 -0700 |
commit | 183c94dd638ab4306948733b68eccf35a6372dd1 (patch) | |
tree | 994e9e74615fea0bec8cabd8a73e8ba70473b419 /lib/api/snippets.rb | |
parent | 3bf1cd5780fc6f08eac8046c8a6b475b8f7f30b7 (diff) | |
download | gitlab-ce-183c94dd638ab4306948733b68eccf35a6372dd1.tar.gz |
Work around migration specs failing due to repository storages not being selected
Migration specs may be missing a column necessary to create an ApplicationSetting
object, which causes the FakeApplicationSetting to be initialized. However, the
project selects a random repository storage via ApplicationSetting#pick_repository_storage,
which isn't present in the OpenStruct.
To workaround this issues, we add a pick_repository_storage method in
FakeApplicationSetting.
Diffstat (limited to 'lib/api/snippets.rb')
0 files changed, 0 insertions, 0 deletions