diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 06:08:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-25 06:08:49 +0300 |
commit | a8c82a6395ed62380b9061a26d92e41d46c2877e (patch) | |
tree | bd8ab49ac11104ad9ae953afd4c5e0036fdddaa2 /spec/serializers/container_repository_entity_spec.rb | |
parent | 0b881f91159cc97ccb7328a2e52977a60ea83fbe (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/container_repository_entity_spec.rb')
-rw-r--r-- | spec/serializers/container_repository_entity_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/serializers/container_repository_entity_spec.rb b/spec/serializers/container_repository_entity_spec.rb index 799a8d5c122..96c80331f41 100644 --- a/spec/serializers/container_repository_entity_spec.rb +++ b/spec/serializers/container_repository_entity_spec.rb @@ -3,14 +3,10 @@ require 'spec_helper' describe ContainerRepositoryEntity do - let(:entity) do - described_class.new(repository, request: request) - end - - set(:project) { create(:project) } - set(:user) { create(:user) } - set(:repository) { create(:container_repository, project: project) } - + let_it_be(:project) { create(:project) } + let_it_be(:user) { create(:user) } + let_it_be(:repository) { create(:container_repository, project: project) } + let(:entity) { described_class.new(repository, request: request) } let(:request) { double('request') } subject { entity.as_json } |