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/model_test.rb
2018-05-29 16:13:49 +02:00

10 lines
300 B
Ruby

require_relative '../test_helper'
module ActionText
class ModelTest < ActiveSupport::TestCase
test "saving content" do
message = Message.create!(subject: "Greetings", content: "<h1>Hello world</h1>")
assert_equal "Hello world", message.content.body.to_plain_text
end
end
end