• Stan Hu's avatar
    Work around migration specs failing due to repository storages not being selected · 183c94dd
    Stan Hu authored
    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.
    183c94dd
fake_application_settings.rb 980 Bytes