aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/model_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/model_test.rb')
-rw-r--r--test/unit/model_test.rb10
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