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
Jérome Perrin
gitlab-ce
Commits
a9a8ceeb
Commit
a9a8ceeb
authored
Jul 14, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge features/projects/artifacts_spec.rb back
It doesn't make too much sense having this standalone
parent
d7bbee75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
37 deletions
+17
-37
spec/features/projects/artifacts_spec.rb
spec/features/projects/artifacts_spec.rb
+0
-37
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+17
-0
No files found.
spec/features/projects/artifacts_spec.rb
deleted
100644 → 0
View file @
d7bbee75
require
'spec_helper'
describe
'Artifacts'
do
let
(
:artifacts_file
)
{
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let
(
:build2
)
{
create
(
:ci_build
)
}
let
(
:project
)
{
pipeline
.
project
}
before
do
login_as
(
:user
)
project
.
team
<<
[
@user
,
:developer
]
end
describe
'GET /:project/builds/:id/artifacts/download'
do
before
do
build
.
update_attributes
(
artifacts_file:
artifacts_file
)
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build
)
click_link
'Download'
end
context
'Build from other project'
do
before
do
build2
.
update_attributes
(
artifacts_file:
artifacts_file
)
visit
download_namespace_project_build_artifacts_path
(
project
.
namespace
,
project
,
build2
)
end
it
{
expect
(
page
.
status_code
).
to
eq
(
404
)
}
end
end
end
spec/features/projects/builds_spec.rb
View file @
a9a8ceeb
...
@@ -196,6 +196,23 @@ describe "Builds" do
...
@@ -196,6 +196,23 @@ describe "Builds" do
end
end
end
end
describe
"GET /:project/builds/:id/download"
do
before
do
@build
.
update_attributes
(
artifacts_file:
artifacts_file
)
visit
namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
)
click_link
'Download'
end
context
"Build from other project"
do
before
do
@build2
.
update_attributes
(
artifacts_file:
artifacts_file
)
visit
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build2
)
end
it
{
expect
(
page
.
status_code
).
to
eq
(
404
)
}
end
end
describe
"GET /:project/builds/:id/raw"
do
describe
"GET /:project/builds/:id/raw"
do
context
"Build from project"
do
context
"Build from project"
do
before
do
before
do
...
...
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