mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Autoload parser
This commit is contained in:
parent
97d7c2df4e
commit
15be2d2668
@ -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
|
||||
|
||||
@ -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"],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user