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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
ef61829b
Commit
ef61829b
authored
May 26, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for deletion of importing_or_inactive?
parent
62ecce78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/models/ci/pipeline_schedule_spec.rb
spec/models/ci/pipeline_schedule_spec.rb
+8
-0
No files found.
spec/models/ci/pipeline_schedule_spec.rb
View file @
ef61829b
...
...
@@ -25,6 +25,14 @@ describe Ci::PipelineSchedule, models: true do
expect
(
pipeline_schedule
).
not_to
be_valid
end
context
'when active is false'
do
it
'does not allow nullified ref'
do
pipeline_schedule
=
build
(
:ci_pipeline_schedule
,
:inactive
,
ref:
nil
)
expect
(
pipeline_schedule
).
not_to
be_valid
end
end
end
describe
'#set_next_run_at'
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