Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-12-17 17:10:45 +0300
committerRémy Coutable <remy@rymai.me>2018-12-19 13:24:55 +0300
commitcc06bb2c6ec1facf2b1eb50803dbedc076abe017 (patch)
tree891bb59190c03da2fa5d2ca14436a648bd0f4f0f /spec/lib/gitlab/current_settings_spec.rb
parent32101a608325617fc5afa896cd7388b643d1d512 (diff)
Simplify spec/lib/gitlab/current_settings_spec.rb a bit
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/lib/gitlab/current_settings_spec.rb')
-rw-r--r--spec/lib/gitlab/current_settings_spec.rb6
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