diff options
author | Jason Lee <huacnlee@gmail.com> | 2018-10-06 11:47:10 +0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-10-05 20:47:10 -0700 |
commit | 33f940f1407870f451e19c479f816edaf9ab0c1e (patch) | |
tree | a21101f37f691c9552f5df1212de5e725b20ac50 /test/unit | |
parent | e156fc125bfc13db17efbadd502d8d2e7591d0fa (diff) | |
download | rails-33f940f1407870f451e19c479f816edaf9ab0c1e.tar.gz rails-33f940f1407870f451e19c479f816edaf9ab0c1e.tar.bz2 rails-33f940f1407870f451e19c479f816edaf9ab0c1e.zip |
Fix has_rich_text with `:body` keywords error. (#16)
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/model_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/model_test.rb b/test/unit/model_test.rb index a9a49cbffd..50632c19a7 100644 --- a/test/unit/model_test.rb +++ b/test/unit/model_test.rb @@ -29,4 +29,9 @@ class ActionText::ModelTest < ActiveSupport::TestCase message = Message.create!(subject: "Greetings", content: "<h1>Hello world</h1>") assert_equal "Hello world", message.content.to_plain_text end + + test "save body" do + message = Message.create(subject: "Greetings", body: "<h1>Hello world</h1>") + assert_equal "Hello world", message.body.to_plain_text + end end |