diff options
Diffstat (limited to 'spec/graphql/mutations/container_repositories/destroy_spec.rb')
-rw-r--r-- | spec/graphql/mutations/container_repositories/destroy_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/graphql/mutations/container_repositories/destroy_spec.rb b/spec/graphql/mutations/container_repositories/destroy_spec.rb index 3903196a511..97da7846339 100644 --- a/spec/graphql/mutations/container_repositories/destroy_spec.rb +++ b/spec/graphql/mutations/container_repositories/destroy_spec.rb @@ -9,7 +9,7 @@ RSpec.describe Mutations::ContainerRepositories::Destroy do let_it_be(:user) { create(:user) } let(:project) { container_repository.project } - let(:id) { container_repository.to_global_id.to_s } + let(:id) { container_repository.to_global_id } specify { expect(described_class).to require_graphql_authorizations(:destroy_container_image) } @@ -57,11 +57,5 @@ RSpec.describe Mutations::ContainerRepositories::Destroy do it_behaves_like params[:shared_examples_name] end end - - context 'with invalid id' do - let(:id) { 'gid://gitlab/ContainerRepository/5555' } - - it_behaves_like 'denying access to container respository' - end end end |