require 'test_helper' module PagesCms class ThumbnailTest < ActiveSupport::TestCase test 'markdown is rendered' do text = Thumbnail.create(content: "This is *bongos*, indeed") assert text.save!, "Errors: #{text.errors.full_messages.to_sentence}" assert_equal text.content_rendered.to_s, "

This is bongos, indeed

", "Errors: #{text.errors.full_messages}, Output: #{text.content_rendered}" assert_equal 'This is *bongos*, indeed', text.content, "The content: #{text.content}" end end end