eBooru/test/helpers/application_helper_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

17 lines
422 B
Ruby

# frozen_string_literal: true
require "test_helper"
class ApplicationHelperTest < ActionView::TestCase
context "The application helper" do
context "format_text method" do
should "not raise an exception for invalid DText" do
dtext = "a\x00b"
assert_nothing_raised { format_text(dtext) }
assert_equal('<div class="styled-dtext"></div>', format_text(dtext))
end
end
end
end