提交 3ea1f91e 编写于 作者: G Grzegorz Bizon

Fix merge request controller specs for new action

上级 1d0820c7
......@@ -33,11 +33,17 @@ describe Projects::MergeRequestsController do
end
context 'when rendering JSON response' do
before do
create(:ci_pipeline, sha: fork_project.commit('remove-submodule').id,
ref: 'remove-submodule',
project: fork_project)
end
it 'renders JSON including serialized pipelines' do
submit_new_merge_request(format: :json)
expect(json_response).to have_key('pipelines')
expect(response).to be_ok
expect(json_response).not_to be_empty
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册