Commit 39dd59bc authored by Matija Čupić's avatar Matija Čupić

Refactor auto_devops_domain setting specs

parent 0f5b2faf
......@@ -120,6 +120,12 @@ describe ApplicationSetting do
setting.update(auto_devops_enabled: true)
end
it 'can be blank' do
setting.update(auto_devops_domain: '')
expect(setting).to be_valid
end
context 'with a valid value' do
before do
setting.update(auto_devops_domain: 'domain.com')
......@@ -140,18 +146,6 @@ describe ApplicationSetting do
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
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