Save syndication sources to posts

This commit is contained in:
2023-01-29 16:54:34 +11:00
parent 37932ea4ad
commit 2d371812f5
17 changed files with 231 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
require "spec_helper"
RSpec.describe Adamantium::Syndication::Mastodon do
subject { described_class.new }
describe "syndication to mastodon" do
let(:post) {
Adamantium::Entities::PostRequest.new(
h: "h-type",
action: nil,
name: "My Post",
content: "Content",
slug: "my-post",
category: ["ruby", "rspec"],
published_at: Time.now,
post_type: "post"
)
}
it "syndicates when it has a post" do
response = subject.call(post: post)
expect(response).to be_success
end
end
end