diff options
Diffstat (limited to 'test/unit/content_test.rb')
-rw-r--r-- | test/unit/content_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/content_test.rb b/test/unit/content_test.rb index e5773361e4..b1a06e2cfa 100644 --- a/test/unit/content_test.rb +++ b/test/unit/content_test.rb @@ -3,8 +3,8 @@ require_relative '../test_helper' module ActionText class ContentTest < ActiveSupport::TestCase test "plain text conversion" do - message = Message.create!(subject: "Greetings", content: "<h1>Hello world</h1>") - assert_equal "Hello world", message.content.to_plain_text + message = Message.new(subject: "Greetings", content: "<h1>Hello world</h1>") + assert_equal "Hello world", message.content.body.to_plain_text end end end |