Test: Return an ApplicationSetting in CurrentSettings
requested to merge 54953-test-godfat into 54953-error-500-viewing-merge-request-due-to-nil-commit_email_hostname
Some tests for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23766
Return a fake IF AND ONLY IF connect_to_db?
is not true
:
- No database connection
- table
application_settings
doesn't exist
Return a non-persisted setting IF AND ONLY IF ActiveRecord::Migrator.needs_migration?
:
- There's a migration pending
Edited by Lin Jen-Shin