2019-09-30 09:06:31 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-12 10:52:48 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 06:09:01 +00:00
|
|
|
RSpec.describe ProjectMirrorEntity do
|
2018-11-12 10:52:48 +00:00
|
|
|
let(:project) { create(:project, :repository, :remote_mirror) }
|
|
|
|
let(:entity) { described_class.new(project) }
|
|
|
|
|
|
|
|
subject { entity.as_json }
|
|
|
|
|
|
|
|
it 'exposes project-specific elements' do
|
|
|
|
is_expected.to include(:id, :remote_mirrors_attributes)
|
|
|
|
end
|
|
|
|
end
|