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
6c6d924c
Commit
6c6d924c
authored
Mar 02, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code styling
parent
268f0ebe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ee/spec/models/merge_request_spec.rb
ee/spec/models/merge_request_spec.rb
+3
-2
ee/spec/models/project_spec.rb
ee/spec/models/project_spec.rb
+3
-2
No files found.
ee/spec/models/merge_request_spec.rb
View file @
6c6d924c
...
...
@@ -1277,12 +1277,13 @@ RSpec.describe MergeRequest do
subject
{
merge_request
.
security_reports_up_to_date?
}
context
'when the target branch security reports are up to date'
do
it
{
is_expected
.
to
be
_truthy
}
it
{
is_expected
.
to
be
true
}
end
context
'when the target branch security reports are out of date'
do
let_it_be
(
:bad_pipeline
)
{
create
(
:ee_ci_pipeline
,
:failed
,
project:
project
,
ref:
merge_request
.
target_branch
)
}
it
{
is_expected
.
to
be_falsy
}
it
{
is_expected
.
to
be
false
}
end
end
end
ee/spec/models/project_spec.rb
View file @
6c6d924c
...
...
@@ -1723,12 +1723,13 @@ RSpec.describe Project do
subject
{
project
.
security_reports_up_to_date_for_ref?
(
merge_request
.
target_branch
)
}
context
'when the target branch security reports are up to date'
do
it
{
is_expected
.
to
be
_truthy
}
it
{
is_expected
.
to
be
true
}
end
context
'when the target branch security reports are out of date'
do
let_it_be
(
:bad_pipeline
)
{
create
(
:ee_ci_pipeline
,
:failed
,
project:
project
,
ref:
merge_request
.
target_branch
)
}
it
{
is_expected
.
to
be_falsy
}
it
{
is_expected
.
to
be
false
}
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