From ed42e6193050cac070f7d68033ab454b4622bedd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 29 May 2018 16:13:39 +0200 Subject: Just test text pipeline without dependencies/saving --- test/unit/content_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/content_test.rb') 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: "

Hello world

") - assert_equal "Hello world", message.content.to_plain_text + message = Message.new(subject: "Greetings", content: "

Hello world

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