Create code posts

This commit is contained in:
2024-03-04 21:34:12 +11:00
parent 4277bde352
commit 56edde6ab5
13 changed files with 155 additions and 53 deletions

View File

@@ -47,8 +47,8 @@ RSpec.describe "Post creation", :db, :requests do
type: ["h-entry"],
properties: {
content: [{
html: "<p>This post has <b>bold</b> and <i>italic</i> text.</p>"
}]
html: "<p>This post has <b>bold</b> and <i>italic</i> text.</p>"
}]
}
}
@@ -191,7 +191,7 @@ RSpec.describe "Post creation", :db, :requests do
expect(last_response).to be_successful
expect(post_repo.bookmark_listing.count).to eq 1
expect(post_repo.bookmark_listing.last.cached_content).to_not eq nil
post "/micropub", params
expect(last_response).to_not be_successful
expect(post_repo.bookmark_listing.count).to eq 1