blob: b7c5333c4d58320fb358978b606696942684ff81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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
|