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
Boxiang Sun
gitlab-ce
Commits
960b6337
Commit
960b6337
authored
Mar 07, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
a46fde67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
24 deletions
+0
-24
spec/controllers/projects/artifacts_controller_spec.rb
spec/controllers/projects/artifacts_controller_spec.rb
+0
-1
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+0
-22
spec/serializers/pipeline_serializer_spec.rb
spec/serializers/pipeline_serializer_spec.rb
+0
-1
No files found.
spec/controllers/projects/artifacts_controller_spec.rb
View file @
960b6337
...
...
@@ -118,7 +118,6 @@ describe Projects::ArtifactsController do
shared_examples
'a valid file'
do
it
'serves the file using workhorse'
do
binding
.
pry
subject
expect
(
response
).
to
have_gitlab_http_status
(
200
)
...
...
spec/models/ci/build_spec.rb
View file @
960b6337
...
...
@@ -204,28 +204,6 @@ describe Ci::Build do
end
end
describe
'#downloadable_single_artifacts_file?'
do
let
(
:build
)
{
create
(
:ci_build
,
:artifacts
,
artifacts_file_store:
store
)
}
subject
{
build
.
downloadable_single_artifacts_file?
}
context
'artifacts are stored locally'
do
let
(
:store
)
{
ObjectStorage
::
Store
::
LOCAL
}
it
{
is_expected
.
to
be_truthy
}
end
context
'artifacts are stored remotely'
do
let
(
:store
)
{
ObjectStorage
::
Store
::
REMOTE
}
before
do
stub_artifacts_object_storage
end
it
{
is_expected
.
to
be_falsey
}
end
end
describe
'#artifacts_expired?'
do
subject
{
build
.
artifacts_expired?
}
...
...
spec/serializers/pipeline_serializer_spec.rb
View file @
960b6337
...
...
@@ -116,7 +116,6 @@ describe PipelineSerializer do
shared_examples
'no N+1 queries'
do
it
'verifies number of queries'
,
:request_store
do
binding
.
pry
recorded
=
ActiveRecord
::
QueryRecorder
.
new
{
subject
}
expect
(
recorded
.
count
).
to
be_within
(
1
).
of
(
40
)
...
...
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