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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
15b976c6
Commit
15b976c6
authored
Sep 27, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes in spec/features/projects/jobs_spec.rb
not sure how to fix the ones with headers
🤔
parent
1ec2486c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+0
-4
No files found.
spec/features/projects/jobs_spec.rb
View file @
15b976c6
...
@@ -380,7 +380,6 @@ feature 'Jobs' do
...
@@ -380,7 +380,6 @@ feature 'Jobs' do
end
end
it
'loads the page and shows all needed controls'
do
it
'loads the page and shows all needed controls'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
).
to
have_content
'Retry'
expect
(
page
).
to
have_content
'Retry'
end
end
end
end
...
@@ -396,7 +395,6 @@ feature 'Jobs' do
...
@@ -396,7 +395,6 @@ feature 'Jobs' do
end
end
it
'shows the right status and buttons'
,
:js
do
it
'shows the right status and buttons'
,
:js
do
expect
(
page
).
to
have_http_status
(
200
)
page
.
within
(
'aside.right-sidebar'
)
do
page
.
within
(
'aside.right-sidebar'
)
do
expect
(
page
).
to
have_content
'Cancel'
expect
(
page
).
to
have_content
'Cancel'
end
end
...
@@ -450,7 +448,6 @@ feature 'Jobs' do
...
@@ -450,7 +448,6 @@ feature 'Jobs' do
end
end
it
'sends the right headers'
do
it
'sends the right headers'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
(
'text/plain; charset=utf-8'
)
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
(
'text/plain; charset=utf-8'
)
expect
(
page
.
response_headers
[
'X-Sendfile'
]).
to
eq
(
job
.
trace
.
send
(
:current_path
))
expect
(
page
.
response_headers
[
'X-Sendfile'
]).
to
eq
(
job
.
trace
.
send
(
:current_path
))
end
end
...
@@ -490,7 +487,6 @@ feature 'Jobs' do
...
@@ -490,7 +487,6 @@ feature 'Jobs' do
end
end
it
'sends the right headers'
do
it
'sends the right headers'
do
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
(
'text/plain; charset=utf-8'
)
expect
(
page
.
response_headers
[
'Content-Type'
]).
to
eq
(
'text/plain; charset=utf-8'
)
expect
(
page
.
response_headers
[
'X-Sendfile'
]).
to
eq
(
existing_file
)
expect
(
page
.
response_headers
[
'X-Sendfile'
]).
to
eq
(
existing_file
)
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