diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-27 16:20:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 16:20:58 +0200 |
commit | b430ba4754f59934acb4806c83d10dee5af8de9e (patch) | |
tree | 1d7482d313f05a800f63a3a490293c9593b2a6a2 /test/unit/model_test.rb | |
parent | a4af9580d604221ec36d2cd5671eb7f256ae5173 (diff) | |
parent | 60050ee41275eda25601beaa453e26841511d492 (diff) | |
download | rails-b430ba4754f59934acb4806c83d10dee5af8de9e.tar.gz rails-b430ba4754f59934acb4806c83d10dee5af8de9e.tar.bz2 rails-b430ba4754f59934acb4806c83d10dee5af8de9e.zip |
Merge pull request #1 from basecamp/separate-rich-text-record
Separate Rich Text record
Diffstat (limited to 'test/unit/model_test.rb')
-rw-r--r-- | test/unit/model_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/model_test.rb b/test/unit/model_test.rb new file mode 100644 index 0000000000..b7c5333c4d --- /dev/null +++ b/test/unit/model_test.rb @@ -0,0 +1,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 |