Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6028f9ee
Commit
6028f9ee
authored
Jan 22, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor auto_devops_domain setting specs
parent
f5591e4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
spec/models/application_setting_spec.rb
spec/models/application_setting_spec.rb
+6
-12
No files found.
spec/models/application_setting_spec.rb
View file @
6028f9ee
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment