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
e404ab51
Commit
e404ab51
authored
Mar 10, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefered single quote. Fix have_http_status(:ok)
parent
f237cad8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+5
-5
No files found.
spec/features/projects/builds_spec.rb
View file @
e404ab51
...
...
@@ -493,23 +493,23 @@ 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
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
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
)
expect
(
page
).
to
have_http_status
(
:ok
)
end
end
context
"when user does not belong to the project"
do
context
'when user does not belong to the project'
do
let
(
:non_member
)
{
create
(
:user
)
}
before
do
...
...
@@ -519,7 +519,7 @@ feature 'Builds', :feature do
end
it
'traces build log'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
).
to
have_http_status
(
:ok
)
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