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