1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/test/unit/content_test.rb

11 lines
304 B
Ruby
Raw Normal View History

2018-02-08 12:01:46 -05:00
require_relative '../test_helper'
module ActiveText
class ContentTest < ActiveSupport::TestCase
test "plain text conversion" do
2018-02-08 16:02:16 -05:00
message = Message.create!(subject: "Greetings", content: "<h1>Hello world</h1>")
assert_equal "Hello world", message.content.to_plain_text
2018-02-08 12:01:46 -05:00
end
end
end