This commit is contained in:
2025-11-07 13:34:32 -08:00
commit 1e8c5a972b
436 changed files with 11000 additions and 0 deletions

10
test/models/page_test.rb Normal file
View File

@@ -0,0 +1,10 @@
require "test_helper"
class PageTest < ActiveSupport::TestCase
test "html preview" do
page = Page.new(body: "# Hello\n\nWorld!")
assert_match /<h1>Hello<\/h1>/, page.html_preview
assert_match /<p>World!<\/p>/, page.html_preview
end
end