mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11 lines
267 B
Ruby
11 lines
267 B
Ruby
|
require_relative '../test_helper'
|
||
|
|
||
|
module ActiveText
|
||
|
class ContentTest < ActiveSupport::TestCase
|
||
|
test "plain text conversion" do
|
||
|
content = ActiveText::Content.new("<h1>Hello world</h1>")
|
||
|
assert "Hello world", content.to_plain_text
|
||
|
end
|
||
|
end
|
||
|
end
|