eBooru/test/functional/dtext_previews_controller_test.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

15 lines
364 B
Ruby

# frozen_string_literal: true
require "test_helper"
class DtextPreviewsControllerTest < ActionDispatch::IntegrationTest
context "The dtext previews controller" do
context "create action" do
should "render" do
post dtext_preview_path, params: { body: "h1. Touhou\n\n* [[touhou]]" }
assert_response :success
end
end
end
end