Commit 5d4ec036 authored by Takuya Noguchi's avatar Takuya Noguchi

Add tests for Groups::MilestonesController#index

parent 175b7834
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment