Sha256: be73b5bda6fc7e65c424cf0f67936bc4ccb4df0b171f9e48d59bb6030a724b98

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

require 'chunks/nowiki'
require 'chunks/match'
require 'test/unit'

class NoWikiTest < Test::Unit::TestCase
  include ChunkMatch

  def test_simple_nowiki
	match(NoWiki, 'This sentence contains <nowiki>[[raw text]]</nowiki>. Do not touch!',
		:plain_text => '[[raw text]]'
	)
	match(NoWiki, 'This sentence contains <nowiki>
                  MultiLine [[raw text]]
                  </nowiki>. Do not touch!',
		:plain_text => "\n                  MultiLine [[raw text]]\n                  "
	)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Pimki-1.8.092 app/models/chunks/nowiki_test.rb
Pimki-1.8.200 app/models/chunks/nowiki_test.rb