Sha256: aeb6280e98c8c8f9dac6c53db99ca98e5599b6d123d07beb63333c901ff4d616

Contents?: true

Size: 440 Bytes

Versions: 12

Compression:

Stored size: 440 Bytes

Contents

require 'helper'
require 'turnip_formatter/renderer/html/doc_string'

module TurnipFormatter::Renderer::Html
  class TestDocString < Test::Unit::TestCase
    def test_render
      renderer = DocString.new(<<-'EOS')
        I Am a Cat
      EOS

      document = html_parse(renderer.render).at_xpath('pre')

      assert_equal('step_doc_string', document.get('class'))
      assert_equal('I Am a Cat', document.text.strip)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
turnip_formatter-0.8.0 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.7.2 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.7.1 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.7.0 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.1 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.7 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.6 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.5 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.4 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.3 test/turnip_formatter/renderer/html/test_doc_string.rb
turnip_formatter-0.6.0.pre.beta.2 test/turnip_formatter/renderer/html/test_doc_string.rb