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

publish_release_activity_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: 287b806bb3515425204aeacf5005522997daa208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ActivityPub::PublishReleaseActivitySerializer, feature_category: :release_orchestration do
  let(:release) { build_stubbed(:release) }

  let(:serializer) { described_class.new.represent(release) }

  it 'serializes the activity attributes' do
    expect(serializer).to include(:id, :type, :actor, :object)
  end
end