aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/content_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/content_test.rb')
-rw-r--r--test/unit/content_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/content_test.rb b/test/unit/content_test.rb
index 48ba731597..5299ae3f8f 100644
--- a/test/unit/content_test.rb
+++ b/test/unit/content_test.rb
@@ -3,8 +3,8 @@ require_relative '../test_helper'
module ActiveText
class ContentTest < ActiveSupport::TestCase
test "plain text conversion" do
- content = ActiveText::Content.new("<h1>Hello world</h1>")
- assert "Hello world", content.to_plain_text
+ message = Message.create!(subject: "Greetings", content: "<h1>Hello world</h1>")
+ assert_equal "Hello world", message.content.to_plain_text
end
end
end