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
6a864d3a
Commit
6a864d3a
authored
Apr 22, 2020
by
Maxime Orefice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename test case factory
parent
26762b65
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
spec/factories/ci/test_case.rb
spec/factories/ci/test_case.rb
+1
-1
spec/lib/gitlab/ci/reports/test_case_spec.rb
spec/lib/gitlab/ci/reports/test_case_spec.rb
+1
-1
spec/lib/gitlab/ci/reports/test_reports_spec.rb
spec/lib/gitlab/ci/reports/test_reports_spec.rb
+1
-1
spec/lib/gitlab/ci/reports/test_suite_spec.rb
spec/lib/gitlab/ci/reports/test_suite_spec.rb
+1
-1
spec/serializers/test_case_entity_spec.rb
spec/serializers/test_case_entity_spec.rb
+2
-2
No files found.
spec/factories/ci/test_case.rb
View file @
6a864d3a
...
...
@@ -16,7 +16,7 @@ FactoryBot.define do
system_output
{
"Failure/Error: is_expected.to eq(300) expected: 300 got: -100"
}
end
trait
:with_attachment
do
trait
:
failed_
with_attachment
do
status
{
Gitlab
::
Ci
::
Reports
::
TestCase
::
STATUS_FAILED
}
attachment
{
"some/path.png"
}
end
...
...
spec/lib/gitlab/ci/reports/test_case_spec.rb
View file @
6a864d3a
...
...
@@ -62,7 +62,7 @@ describe Gitlab::Ci::Reports::TestCase do
end
context
'when attachment is present'
do
let
(
:attachment_test_case
)
{
build
(
:test_case
,
:with_attachment
)
}
let
(
:attachment_test_case
)
{
build
(
:test_case
,
:
failed_
with_attachment
)
}
it
"initializes the attachment if present"
do
expect
(
attachment_test_case
.
attachment
).
to
eq
(
"some/path.png"
)
...
...
spec/lib/gitlab/ci/reports/test_reports_spec.rb
View file @
6a864d3a
...
...
@@ -127,7 +127,7 @@ describe Gitlab::Ci::Reports::TestReports do
context
'when test suites contain an attachment'
do
let
(
:test_case_succes
)
{
build
(
:test_case
)
}
let
(
:test_case_with_attachment
)
{
build
(
:test_case
,
:with_attachment
)
}
let
(
:test_case_with_attachment
)
{
build
(
:test_case
,
:
failed_
with_attachment
)
}
before
do
test_reports
.
get_suite
(
'rspec'
).
add_test_case
(
test_case_succes
)
...
...
spec/lib/gitlab/ci/reports/test_suite_spec.rb
View file @
6a864d3a
...
...
@@ -101,7 +101,7 @@ describe Gitlab::Ci::Reports::TestSuite do
end
context
'when test cases contain an attachment'
do
let
(
:test_case_with_attachment
)
{
build
(
:test_case
,
:with_attachment
)}
let
(
:test_case_with_attachment
)
{
build
(
:test_case
,
:
failed_
with_attachment
)}
before
do
test_suite
.
add_test_case
(
test_case_with_attachment
)
...
...
spec/serializers/test_case_entity_spec.rb
View file @
6a864d3a
...
...
@@ -38,7 +38,7 @@ describe TestCaseEntity do
end
context
'when attachment is present'
do
let
(
:test_case
)
{
build
(
:test_case
,
:with_attachment
)
}
let
(
:test_case
)
{
build
(
:test_case
,
:
failed_
with_attachment
)
}
it
'returns the attachment_url'
do
expect
(
subject
).
to
include
(
:attachment_url
)
...
...
@@ -60,7 +60,7 @@ describe TestCaseEntity do
end
context
'when attachment is present'
do
let
(
:test_case
)
{
build
(
:test_case
,
:with_attachment
)
}
let
(
:test_case
)
{
build
(
:test_case
,
:
failed_
with_attachment
)
}
it
'returns no attachment_url'
do
expect
(
subject
).
not_to
include
(
:attachment_url
)
...
...
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