Sha256: 3498e3071c8282fc73230cc0c45ba6c20486289c7cc8aaa6b1fb34f43b8a4427

Contents?: true

Size: 559 Bytes

Versions: 5

Compression:

Stored size: 559 Bytes

Contents

require 'test_helper'

module PagesCms
  class JumbotronTest < ActiveSupport::TestCase

    test 'markdown is rendered' do
      text = Jumbotron.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

Version Path
pages_cms-0.1.1 test/models/pages_cms/jumbotron_test.rb
pages_cms-0.1.0 test/models/pages_cms/jumbotron_test.rb
pages_cms-0.0.3 test/models/pages_cms/jumbotron_test.rb
pages_cms-0.0.2 test/models/pages_cms/jumbotron_test.rb
pages_cms-0.0.1 test/models/pages_cms/jumbotron_test.rb