diff options
Diffstat (limited to 'spec/config')
-rw-r--r-- | spec/config/settings_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/config/settings_spec.rb b/spec/config/settings_spec.rb index 55e675d5107..4639e533922 100644 --- a/spec/config/settings_spec.rb +++ b/spec/config/settings_spec.rb @@ -170,12 +170,12 @@ RSpec.describe Settings, feature_category: :system_access do it 'defaults to using the encrypted_settings_key_base for the key' do expect(Gitlab::EncryptedConfiguration).to receive(:new).with(hash_including(base_key: Gitlab::Application.secrets.encrypted_settings_key_base)) - Settings.encrypted('tmp/tests/test.enc') + described_class.encrypted('tmp/tests/test.enc') end it 'returns empty encrypted config when a key has not been set' do allow(Gitlab::Application.secrets).to receive(:encrypted_settings_key_base).and_return(nil) - expect(Settings.encrypted('tmp/tests/test.enc').read).to be_empty + expect(described_class.encrypted('tmp/tests/test.enc').read).to be_empty end end |