Commit fb4ff4c0 authored by Justin Ho's avatar Justin Ho

Add simple controller specs

parent aaa9b936
......@@ -194,8 +194,21 @@ RSpec.describe Projects::Integrations::Jira::IssuesController do
it 'renders `show` template' do
get :show, params: { namespace_id: project.namespace, project_id: project, id: 1 }
expect(response).to have_gitlab_http_status(:ok)
expect(response).to render_template(:show)
end
it 'returns JSON response' do
get :show, params: { namespace_id: project.namespace, project_id: project, id: 1, format: :json }
expect(response).to have_gitlab_http_status(:ok)
expect(json_response).to include(
'title_html',
'description_html',
'author',
'labels'
)
end
end
end
end
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