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
5d4ec036
Commit
5d4ec036
authored
Jun 23, 2017
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for Groups::MilestonesController#index
parent
175b7834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/controllers/groups/milestones_controller_spec.rb
spec/controllers/groups/milestones_controller_spec.rb
+15
-0
No files found.
spec/controllers/groups/milestones_controller_spec.rb
View file @
5d4ec036
...
...
@@ -23,6 +23,21 @@ describe Groups::MilestonesController do
project
.
team
<<
[
user
,
:master
]
end
describe
"#index"
do
it
'shows group milestones page'
do
get
:index
,
group_id:
group
.
to_param
expect
(
response
).
to
have_http_status
(
200
)
end
it
'shows group milestones JSON'
do
get
:index
,
group_id:
group
.
to_param
,
format: :json
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
.
content_type
).
to
eq
'application/json'
end
end
it_behaves_like
'milestone tabs'
describe
"#create"
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