From 33f940f1407870f451e19c479f816edaf9ab0c1e Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Sat, 6 Oct 2018 11:47:10 +0800 Subject: Fix has_rich_text with `:body` keywords error. (#16) --- test/unit/model_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/unit') 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: "

Hello world

") assert_equal "Hello world", message.content.to_plain_text end + + test "save body" do + message = Message.create(subject: "Greetings", body: "

Hello world

") + assert_equal "Hello world", message.body.to_plain_text + end end -- cgit v1.2.3