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
08c769af
Commit
08c769af
authored
Oct 16, 2019
by
Sean Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test merge_pipelines_enabled enhancements
parent
28fd62f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
ee/spec/models/project_ci_cd_setting_spec.rb
ee/spec/models/project_ci_cd_setting_spec.rb
+29
-6
No files found.
ee/spec/models/project_ci_cd_setting_spec.rb
View file @
08c769af
...
...
@@ -72,6 +72,10 @@ describe ProjectCiCdSetting do
before
do
stub_licensed_features
(
merge_pipelines:
true
,
merge_trains:
true
)
end
context
'when merge pipelines option was enabled'
do
before
do
project
.
update
(
merge_pipelines_enabled:
true
)
end
...
...
@@ -87,4 +91,23 @@ describe ProjectCiCdSetting do
it
{
is_expected
.
to
be
false
}
end
end
context
'when merge pipelines option was disabled'
do
before
do
project
.
update
(
merge_pipelines_enabled:
false
)
end
context
'when merge pipelines option is disabled'
do
before
do
project
.
update
(
merge_pipelines_enabled:
true
)
end
it
{
is_expected
.
to
be
false
}
end
context
'when merge pipelines option is intact'
do
it
{
is_expected
.
to
be
false
}
end
end
end
end
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