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
060ae540
Commit
060ae540
authored
Nov 08, 2019
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some missing tests for Release
parent
02b3446e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
spec/models/release_spec.rb
spec/models/release_spec.rb
+17
-0
No files found.
spec/models/release_spec.rb
View file @
060ae540
...
...
@@ -165,4 +165,21 @@ RSpec.describe Release do
end
end
end
describe
'#evidence_summary'
do
let!
(
:release
)
{
create
(
:release
)
}
context
'when a release was created before evidence collection existed'
do
it
'is nil'
,
:sidekiq_inline
do
allow
(
release
).
to
receive
(
:evidence
).
and_return
(
nil
)
expect
(
release
.
evidence_summary
).
to
be_nil
end
end
context
'when a release was created with evidence collection'
do
it
'returns the summary'
,
:sidekiq_inline
do
expect
(
release
.
evidence_summary
).
to
eq
(
release
.
evidence
.
summary
)
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