Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-07 21:08:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-07 21:08:08 +0300
commit59f37a99433dbdc3093e06f0f57beff171bae5d4 (patch)
tree61f7e6c66fd79fda1ec46b223225012241eff3e7 /spec/serializers/remote_mirror_entity_spec.rb
parentfa4473a48706d074217f4ffc8d183cf630af1833 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/remote_mirror_entity_spec.rb')
-rw-r--r--spec/serializers/remote_mirror_entity_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/serializers/remote_mirror_entity_spec.rb b/spec/serializers/remote_mirror_entity_spec.rb
index 4cbf87e4d67..c6290e15995 100644
--- a/spec/serializers/remote_mirror_entity_spec.rb
+++ b/spec/serializers/remote_mirror_entity_spec.rb
@@ -3,8 +3,7 @@
require 'spec_helper'
RSpec.describe RemoteMirrorEntity do
- let(:project) { create(:project, :repository, :remote_mirror, url: "https://test:password@gitlab.com") }
- let(:remote_mirror) { project.remote_mirrors.first }
+ let(:remote_mirror) { build_stubbed(:remote_mirror, url: "https://test:password@gitlab.com") }
let(:entity) { described_class.new(remote_mirror) }
subject { entity.as_json }