Commit 5bf5e35a authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Generate fixtures data for tasks_by_type

parent 6b043e7d
......@@ -103,4 +103,25 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
expect(response).to be_successful
end
end
end
describe Analytics::TasksByTypeController, type: :controller do
render_views
before do
stub_licensed_features(type_of_work_analytics: true)
stub_feature_flags(Gitlab::Analytics::TASKS_BY_TYPE_CHART_FEATURE_FLAG => true)
group.add_maintainer(user)
sign_in(user)
end
it 'analytics/tasks_by_type.json' do
params = { group_id: group.full_path, label_ids: [1, 2], created_after: '2018-01-01', created_before: '2019-01-01' }
get(:show, params: params, format: :json)
expect(response).to be_successful
end
end
end
\ No newline at end of file
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