Skip to content
代码片段 群组 项目
未验证 提交 8b120b00 编辑于 作者: Mehmet Emin INAC's avatar Mehmet Emin INAC 提交者: GitLab
浏览文件

Merge branch '435746-add-extra-no-db-value-tests' into 'master'

Add final no onboarding status request layer test coverage

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150548



Merged-by: default avatarMehmet Emin INAC <minac@gitlab.com>
Approved-by: default avatarRoy Liu <rliu@gitlab.com>
Approved-by: default avatarMehmet Emin INAC <minac@gitlab.com>
Co-authored-by: default avatarDoug Stull <dstull@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -315,6 +315,23 @@ ...@@ -315,6 +315,23 @@
end end
end end
end end
context 'when no entries exist in onboarding_status for registration_types' do
before do
user.update!(onboarding_status: {})
end
it 'redirects to the next step in the path' do
expect_next_instance_of(GitlabSubscriptions::CreateCompanyLeadService) do |service|
expect(service).to receive(:execute).and_return(ServiceResponse.success)
end
post :create, params: params
expect(response).to have_gitlab_http_status(:redirect)
expect(response).to redirect_to(new_users_sign_up_group_path(redirect_params))
end
end
end end
context 'on failure' do context 'on failure' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册