Sha256: 8f8b3d62f03e09bdb3738e717f1a582695c4621b8ac3dce425fc9c5cc9903db4
Contents?: true
Size: 559 Bytes
Versions: 5
Compression:
Stored size: 559 Bytes
Contents
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, "<p>This is <em>bongos</em>, indeed</p> ", "Errors: #{text.errors.full_messages}, Output: #{text.content_rendered}" assert_equal 'This is *bongos*, indeed', text.content, "The content: #{text.content}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems