mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
15 lines
379 B
Ruby
15 lines
379 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe ActivityPub::UserSerializer do
|
|
context "when generating an ActivityStreams representation" do
|
|
subject(:serializer) { described_class.new(object) }
|
|
|
|
let(:ap) { serializer.serialize }
|
|
let(:object) { create(:contributor) }
|
|
|
|
it "includes concrete type" do
|
|
expect(ap[:"f3di:concreteType"]).to eq "User"
|
|
end
|
|
end
|
|
end
|