diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-29 16:13:49 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-29 16:13:49 +0200 |
commit | 4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f (patch) | |
tree | e0b11ad2e9fe3fb9adfd61c3c742607a13ef16f7 /test | |
parent | ed42e6193050cac070f7d68033ab454b4622bedd (diff) | |
download | rails-4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f.tar.gz rails-4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f.tar.bz2 rails-4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f.zip |
Test saving the dependent models
Diffstat (limited to 'test')
-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 |