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

releases_actor_serializer_spec.rb « activity_pub « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc754eabe5c884c82bd1c4684ef8192ee9c3faf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ActivityPub::ReleasesActorSerializer, feature_category: :groups_and_projects do
  let(:project) { build_stubbed(:project, name: 'Fooify', path: 'fooify') }
  let(:releases) { build_stubbed_list(:release, 3, project: project) }

  context 'when there is a single object provided' do
    subject { described_class.new.represent(project, outbox: '/outbox') }

    it 'serializes the actor attributes' do
      expect(subject).to include(:id, :type, :preferredUsername, :name, :content, :context)
    end
  end
end