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
5dbecb8e
Commit
5dbecb8e
authored
Dec 11, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a wrong conflict resolution in spec/models/ci/build_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
477e570b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
32 deletions
+8
-32
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+8
-32
No files found.
spec/models/ci/build_spec.rb
View file @
5dbecb8e
...
@@ -133,11 +133,9 @@ describe Ci::Build do
...
@@ -133,11 +133,9 @@ describe Ci::Build do
end
end
describe
'#artifacts?'
do
describe
'#artifacts?'
do
context
'when new artifacts are used'
do
let
(
:build
)
{
create
(
:ci_build
,
:artifacts
)
}
subject
{
build
.
artifacts?
}
subject
{
build
.
artifacts?
}
context
'when new artifacts are used'
do
context
'artifacts archive does not exist'
do
context
'artifacts archive does not exist'
do
let
(
:build
)
{
create
(
:ci_build
)
}
let
(
:build
)
{
create
(
:ci_build
)
}
...
@@ -145,39 +143,19 @@ describe Ci::Build do
...
@@ -145,39 +143,19 @@ describe Ci::Build do
end
end
context
'artifacts archive exists'
do
context
'artifacts archive exists'
do
let
(
:build
)
{
create
(
:ci_build
,
:artifacts
)
}
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
context
'is expired'
do
context
'is expired'
do
let
!
(
:build
)
{
create
(
:ci_build
,
:artifacts
,
:expired
)
}
let
(
:build
)
{
create
(
:ci_build
,
:artifacts
,
:expired
)
}
it
{
is_expected
.
to
be_falsy
}
it
{
is_expected
.
to
be_falsy
}
end
end
context
'is not expired'
do
it
{
is_expected
.
to
be_truthy
}
end
end
end
context
'when legacy artifacts are used'
do
let
(
:build
)
{
create
(
:ci_build
,
:legacy_artifacts
)
}
subject
{
build
.
artifacts?
}
context
'artifacts archive does not exist'
do
let
(
:build
)
{
create
(
:ci_build
)
}
context
'is not expired'
do
it
{
is_expected
.
to
be_truthy
}
end
end
end
end
end
context
'when legacy artifacts are used'
do
context
'when legacy artifacts are used'
do
let
(
:build
)
{
create
(
:ci_build
,
:legacy_artifacts
)
}
subject
{
build
.
artifacts?
}
context
'artifacts archive does not exist'
do
context
'artifacts archive does not exist'
do
let
(
:build
)
{
create
(
:ci_build
)
}
let
(
:build
)
{
create
(
:ci_build
)
}
...
@@ -185,17 +163,15 @@ describe Ci::Build do
...
@@ -185,17 +163,15 @@ describe Ci::Build do
end
end
context
'artifacts archive exists'
do
context
'artifacts archive exists'
do
let
(
:build
)
{
create
(
:ci_build
,
:legacy_artifacts
)
}
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
context
'is expired'
do
context
'is expired'
do
let
!
(
:build
)
{
create
(
:ci_build
,
:legacy_artifacts
,
:expired
)
}
let
(
:build
)
{
create
(
:ci_build
,
:legacy_artifacts
,
:expired
)
}
it
{
is_expected
.
to
be_falsy
}
it
{
is_expected
.
to
be_falsy
}
end
end
context
'is not expired'
do
it
{
is_expected
.
to
be_truthy
}
end
end
end
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