Save syndication sources to posts
This commit is contained in:
25
spec/syndication/mastodon_spec.rb
Normal file
25
spec/syndication/mastodon_spec.rb
Normal 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
|
Reference in New Issue
Block a user