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.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/content_test.rb b/test/unit/content_test.rb
new file mode 100644
index 0000000000..48ba731597
--- /dev/null
+++ b/test/unit/content_test.rb
@@ -0,0 +1,10 @@
+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
+ end
+ end
+end