require "../../../../src/models/activity_pub/activity/accept"

require "../../../spec_helper/base"

Spectator.describe ActivityPub::Activity::Accept do
  setup_spec

  subject { described_class.new(iri: "http://test.test/#{random_string}").save }

  describe "#actor" do
    it "returns an actor or actor subclass" do
      expect(typeof(subject.actor)).to eq({{(ActivityPub::Actor.all_subclasses << ActivityPub::Actor).join("|").id}})
    end
  end

  describe "#object" do
    it "returns a follow or follow subclass" do
      expect(typeof(subject.object)).to eq({{(ActivityPub::Activity::Follow.all_subclasses << ActivityPub::Activity::Follow).join("|").id}})
    end
  end
end
