diff options
author | Rémy Coutable <remy@rymai.me> | 2018-12-17 15:10:45 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-12-19 11:24:55 +0100 |
commit | cc06bb2c6ec1facf2b1eb50803dbedc076abe017 (patch) | |
tree | 891bb59190c03da2fa5d2ca14436a648bd0f4f0f | |
parent | 32101a608325617fc5afa896cd7388b643d1d512 (diff) | |
download | gitlab-ce-cc06bb2c6ec1facf2b1eb50803dbedc076abe017.tar.gz |
Simplify spec/lib/gitlab/current_settings_spec.rb a bit
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/lib/gitlab/current_settings_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/current_settings_spec.rb b/spec/lib/gitlab/current_settings_spec.rb index add8867d243..caf9fc5442c 100644 --- a/spec/lib/gitlab/current_settings_spec.rb +++ b/spec/lib/gitlab/current_settings_spec.rb @@ -113,6 +113,8 @@ describe Gitlab::CurrentSettings do end shared_examples 'a non-persisted ApplicationSetting object' do + let(:current_settings) { described_class.current_application_settings } + it 'returns a non-persisted ApplicationSetting object' do expect(current_settings).to be_a(ApplicationSetting) expect(current_settings).not_to be_persisted @@ -132,9 +134,7 @@ describe Gitlab::CurrentSettings do end context 'with no ApplicationSetting DB record' do - it_behaves_like 'a non-persisted ApplicationSetting object' do - let(:current_settings) { described_class.current_application_settings } - end + it_behaves_like 'a non-persisted ApplicationSetting object' end context 'with an existing ApplicationSetting DB record' do |