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
5c83d3af
Commit
5c83d3af
authored
May 22, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve test wording
parent
2792695c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/controllers/projects/environments_controller_spec.rb
spec/controllers/projects/environments_controller_spec.rb
+7
-7
No files found.
spec/controllers/projects/environments_controller_spec.rb
View file @
5c83d3af
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
EnvironmentsController
do
describe
Projects
::
EnvironmentsController
do
l
et
(
:user
)
{
create
(
:user
)
}
s
et
(
:user
)
{
create
(
:user
)
}
l
et
(
:project
)
{
create
(
:empty_project
)
}
s
et
(
:project
)
{
create
(
:empty_project
)
}
l
et
(
:environment
)
do
s
et
(
:environment
)
do
create
(
:environment
,
name:
'production'
,
project:
project
)
create
(
:environment
,
name:
'production'
,
project:
project
)
end
end
before
do
before
do
project
.
team
<<
[
user
,
:master
]
project
.
add_master
(
user
)
sign_in
(
user
)
sign_in
(
user
)
end
end
describe
'GET index'
do
describe
'GET index'
do
context
'when
standardrequest has been
made'
do
context
'when
a request for the HTML is
made'
do
it
'responds with status code 200'
do
it
'responds with status code 200'
do
get
:index
,
environment_params
get
:index
,
environment_params
expect
(
response
).
to
be_ok
expect
(
response
).
to
have_http_status
(
:ok
)
end
end
end
end
...
@@ -101,7 +101,7 @@ describe Projects::EnvironmentsController do
...
@@ -101,7 +101,7 @@ describe Projects::EnvironmentsController do
end
end
context
'when using JSON format'
do
context
'when using JSON format'
do
it
'
responds with with a sorted JSON
'
do
it
'
sorts the subfolders lexicographically
'
do
get
:folder
,
namespace_id:
project
.
namespace
,
get
:folder
,
namespace_id:
project
.
namespace
,
project_id:
project
,
project_id:
project
,
id:
'staging-1.0'
,
id:
'staging-1.0'
,
...
...
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