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
Léo-Paul Géneau
gitlab-ce
Commits
5151ebf4
Commit
5151ebf4
authored
Jul 18, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use RSpec helpers, feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13125543
parent
39c1cabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
spec/models/build_spec.rb
spec/models/build_spec.rb
+6
-5
No files found.
spec/models/build_spec.rb
View file @
5151ebf4
...
...
@@ -628,7 +628,7 @@ describe Ci::Build, models: true do
describe
'#erasable?'
do
subject
{
build
.
erasable?
}
it
{
is_expected
.
to
eq
true
}
it
{
is_expected
.
to
be_truthy
}
end
describe
'#erased?'
do
...
...
@@ -636,7 +636,7 @@ describe Ci::Build, models: true do
subject
{
build
.
erased?
}
context
'build has not been erased'
do
it
{
is_expected
.
to
be
false
}
it
{
is_expected
.
to
be
_falsey
}
end
context
'build has been erased'
do
...
...
@@ -644,12 +644,13 @@ describe Ci::Build, models: true do
build
.
erase
end
it
{
is_expected
.
to
be
true
}
it
{
is_expected
.
to
be
_truthy
}
end
end
context
'metadata and build trace are not available'
do
let!
(
:build
)
{
create
(
:ci_build
,
:success
,
:artifacts
)
}
before
do
build
.
remove_artifacts_metadata!
end
...
...
@@ -676,7 +677,7 @@ describe Ci::Build, models: true do
end
it
'returns false'
do
expect
(
build
.
retryable?
).
to
be
(
false
)
expect
(
build
).
not_to
be_retryable
end
end
...
...
@@ -686,7 +687,7 @@ describe Ci::Build, models: true do
end
it
'returns true'
do
expect
(
build
.
retryable?
).
to
be
(
true
)
expect
(
build
).
to
be_retryable
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