aboutsummaryrefslogblamecommitdiffstats
path: root/test/unit/content_test.rb
blob: b1a06e2cfa8ae9f9e32679fdb8aea917bc62df85 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                 
                 

                                             

                                                                                  


       
require_relative '../test_helper'

module ActionText
  class ContentTest < ActiveSupport::TestCase
    test "plain text conversion" do
      message = Message.new(subject: "Greetings", content: "<h1>Hello world</h1>")
      assert_equal "Hello world", message.content.body.to_plain_text
    end
  end
end