Commit 6028f9ee authored by Matija Čupić's avatar Matija Čupić

Refactor auto_devops_domain setting specs

parent f5591e4c
...@@ -120,6 +120,12 @@ describe ApplicationSetting do ...@@ -120,6 +120,12 @@ describe ApplicationSetting do
setting.update(auto_devops_enabled: true) setting.update(auto_devops_enabled: true)
end end
it 'can be blank' do
setting.update(auto_devops_domain: '')
expect(setting).to be_valid
end
context 'with a valid value' do context 'with a valid value' do
before do before do
setting.update(auto_devops_domain: 'domain.com') setting.update(auto_devops_domain: 'domain.com')
...@@ -140,18 +146,6 @@ describe ApplicationSetting do ...@@ -140,18 +146,6 @@ describe ApplicationSetting do
end end
end end
end end
context 'when auto_devops_enabled? is false' do
before do
setting.update(auto_devops_enabled: false)
end
it 'can be blank' do
setting.update(auto_devops_domain: '')
expect(setting).to be_valid
end
end
end end
context 'circuitbreaker settings' do context 'circuitbreaker settings' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment