diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-07-24 10:47:33 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-24 10:47:33 +0000 |
commit | 4ad8f12e44b81bb5a07a5365ec0fc5fdba19094e (patch) | |
tree | 73a0d96336fc9f65309ae4d0ab4f447ca0cadfab /spec | |
parent | d384b6a04782d90f2728307be7e92d0923fff524 (diff) | |
download | gitlab-ce-4ad8f12e44b81bb5a07a5365ec0fc5fdba19094e.tar.gz |
Fix editing project with container images present
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/projects/update_service_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/services/projects/update_service_spec.rb b/spec/services/projects/update_service_spec.rb index fd4011ad606..3ee834748df 100644 --- a/spec/services/projects/update_service_spec.rb +++ b/spec/services/projects/update_service_spec.rb @@ -103,7 +103,7 @@ describe Projects::UpdateService, '#execute', :services do end end - context 'when renaming project that contains container images' do + context 'when updating a project that contains container images' do before do stub_container_registry_config(enabled: true) stub_container_registry_tags(repository: /image/, tags: %w[rc1]) @@ -116,6 +116,13 @@ describe Projects::UpdateService, '#execute', :services do expect(result).to include(status: :error) expect(result[:message]).to match(/contains container registry tags/) end + + it 'allows to update other settings' do + result = update_project(project, admin, public_builds: true) + + expect(result[:status]).to eq :success + expect(project.reload.public_builds).to be true + end end context 'when passing invalid parameters' do |