gitlab-org--gitlab-foss/spec/lib
Rémy Coutable 71672dfa6a
Return an ApplicationSetting in CurrentSettings
This replaces the use of fake_application_settings with
`::ApplicationSetting.build`_from_defaults. The reason is that
`fake_application_settings` doesn't have the custom accessors that
`ApplicationSetting` has, e.g. `#commit_email_hostname`, thus this
can lead to unexpected `nil` values which comes from the database
column instead of `.default_commit_email_hostname` returned by
`ApplicationSetting#commit_email_hostname`.

Using `::ApplicationSetting.build_from_defaults` should be safe as it
doesn't try to `INSERT` a DB record, in contrary to
`::ApplicationSetting.create_from_defaults` which we used to use, and
which created issues that the introduction of
`fake_application_settings` tried to resolve (575dced5).

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-19 11:24:53 +01:00
..
api Support lowercase none / any 2018-10-26 10:47:14 +08:00
backup Restore Object Pools when restoring an object pool 2018-12-13 09:00:03 +01:00
banzai Remove feature flag for suggest changes feature 2018-12-18 11:18:21 -02:00
bitbucket
bitbucket_server Paginate Bitbucket Server importer projects 2018-11-07 11:37:46 -08:00
constraints Pass on arguments passed to the FeatureConstrainer 2018-12-14 14:35:05 +01:00
container_registry Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
gitaly Remove broken git storage for testing 2018-10-23 10:36:47 +02:00
gitlab Return an ApplicationSetting in CurrentSettings 2018-12-19 11:24:53 +01:00
google_api
json_web_token Relocate JSONWebToken::HMACToken from EE 2018-11-13 08:36:57 +11:00
mattermost Update specs to rails5 format 2018-12-19 10:04:31 +11:00
microsoft_teams Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
object_storage
omni_auth/strategies Support RSA and ECDSA algorithms in Omniauth JWT 2018-12-05 18:17:40 +01:00
quality Improve automated Review Apps cleanup 2018-10-22 09:57:50 +02:00
rspec_flaky
system_check
after_commit_queue_spec.rb
event_filter_spec.rb
expand_variables_spec.rb
extracts_path_spec.rb Revert "Merge branch 'revert-e2aa2177' into 'master'" 2018-11-20 12:29:56 +00:00
feature_spec.rb
file_size_validator_spec.rb
forever_spec.rb
gitlab_spec.rb
milestone_array_spec.rb
system_check_spec.rb
uploaded_file_spec.rb