Add checkins

This commit is contained in:
2023-02-25 12:51:19 +11:00
parent 9b88818941
commit 9fe40896fa
8 changed files with 236 additions and 5 deletions

View File

@@ -58,4 +58,21 @@ RSpec.describe "Post creation", :db, :requests do
expect(post_repo.bookmark_listing.count).to eq 1
end
end
context "auth" do
it "does not allow multiple auth methods" do
params = {
access_token: "foo"
}
headers = {
HTTP_AUTHORIZATION: "Bearer foo",
CONTENT_TYPE: "application/json"
}
post "/micropub", params.to_json, headers
expect(last_response.status).to eq 400
end
end
end