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
efc4e8dd
Commit
efc4e8dd
authored
Mar 07, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add proper tests
parent
3918c303
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+31
-0
No files found.
spec/features/projects/builds_spec.rb
View file @
efc4e8dd
...
...
@@ -492,6 +492,37 @@ feature 'Builds', :feature do
it
{
expect
(
page
.
status_code
).
to
eq
(
404
)
}
end
context
"when Project is public and builds_access_level is Everyone with access"
do
let
(
:project
)
{
create
(
:project
,
:public
)
}
before
do
project
.
project_feature
.
update_attribute
(
'builds_access_level'
,
ProjectFeature
::
ENABLED
)
end
context
"when user belongs to the project"
do
before
do
visit
trace_namespace_project_build_path
(
project
.
namespace
,
project
,
build
,
format: :json
)
end
it
'traces build log'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
end
end
context
"when user does not belong to the project"
do
let
(
:non_member
)
{
create
(
:user
)
}
before
do
logout
# Logout from :developer
login_as
(
non_member
)
visit
trace_namespace_project_build_path
(
project
.
namespace
,
project
,
build
,
format: :json
)
end
it
'traces build log'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
end
end
end
end
describe
"GET /:project/builds/:id/status"
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