1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00

Autoload parser

This commit is contained in:
Daniel Barber 2019-11-16 22:10:41 -05:00
parent 97d7c2df4e
commit 15be2d2668
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 4 additions and 2 deletions

View File

@ -3,4 +3,6 @@ module Micropub
autoload :Github, File.expand_path('micropub/github.rb', __dir__)
autoload :Indieauth, File.expand_path('micropub/indieauth.rb', __dir__)
autoload :Post, File.expand_path('micropub/models/post.rb', __dir__)
autoload :PostJSONParser,
File.expand_path('micropub/models/post_json_parser.rb', __dir__)
end

View File

@ -62,7 +62,7 @@ describe "create post" do
it "creates a post with JSON" do
post_json = {
type: "h-entry",
type: ["h-entry"],
properties: {
content: ["Hello, World!"],
category: ["one", "two", "three"],
@ -79,7 +79,7 @@ describe "create post" do
it "creates a post with JSON and HTML content" do
post_json = {
type: "h-entry",
type: ["h-entry"],
properties: {
content: { html: ["<p>Hello, World!</p>"] },
category: ["one", "two", "three"],