Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-06-23 03:29:08 +0300
committerTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-06-26 17:54:07 +0300
commit5d4ec03687852564b44ce1befccb292e11f1504b (patch)
tree25fe5e896c514122f8c9a70a79df4114ab9f88a5 /spec/controllers/groups
parent175b7834c398546550a75b545fa42828302d656c (diff)
Add tests for Groups::MilestonesController#index
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r--spec/controllers/groups/milestones_controller_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/controllers/groups/milestones_controller_spec.rb b/spec/controllers/groups/milestones_controller_spec.rb
index f3263bc177d..c6e5fb61cf9 100644
--- a/spec/controllers/groups/milestones_controller_spec.rb
+++ b/spec/controllers/groups/milestones_controller_spec.rb
@@ -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