diff options
Diffstat (limited to 'spec/serializers/remote_mirror_entity_spec.rb')
-rw-r--r-- | spec/serializers/remote_mirror_entity_spec.rb | 3 |
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 } |