Sha256: cb69245eb4a5a1b976fcef3029760ccddcb6b683745529c6ac48e87bc7ba41fb
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
require 'test_helper' module PagesCms class TextBoxTest < ActiveSupport::TestCase test 'markdown is rendered' do text = TextBox.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