diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-26 21:24:14 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-26 21:24:14 +0300 |
commit | 8c28c3e84eb3e330f10bf2c765668a23dfce5080 (patch) | |
tree | f48f0f99308bd9c6c81b7d318d79a72d1776f232 /spec/models/application_setting_spec.rb | |
parent | 2b00b61eba758baf9d4242ba9c71f2319f8ec428 (diff) | |
parent | cd8aaea36f3c2b69c7c48c00ed56de14267969dd (diff) |
Merge branch 'refactor/remove-sentry-from-app-settings' into 'master'
Remove Sentry settings from application settings
See merge request gitlab-org/gitlab-ce!28447
Diffstat (limited to 'spec/models/application_setting_spec.rb')
-rw-r--r-- | spec/models/application_setting_spec.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index f8dc1541dd3..ab6f6dfe720 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -354,36 +354,6 @@ describe ApplicationSetting do end end - describe 'setting Sentry DSNs' do - context 'server DSN' do - it 'strips leading and trailing whitespace' do - subject.update(sentry_dsn: ' http://test ') - - expect(subject.sentry_dsn).to eq('http://test') - end - - it 'handles nil values' do - subject.update(sentry_dsn: nil) - - expect(subject.sentry_dsn).to be_nil - end - end - - context 'client-side DSN' do - it 'strips leading and trailing whitespace' do - subject.update(clientside_sentry_dsn: ' http://test ') - - expect(subject.clientside_sentry_dsn).to eq('http://test') - end - - it 'handles nil values' do - subject.update(clientside_sentry_dsn: nil) - - expect(subject.clientside_sentry_dsn).to be_nil - end - end - end - describe '#disabled_oauth_sign_in_sources=' do before do allow(Devise).to receive(:omniauth_providers).and_return([:github]) |