Class: NoWikiTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
ChunkMatch
Defined in:
app/models/chunks/nowiki_test.rb

Instance Method Summary collapse

Methods included from ChunkMatch

#match

Instance Method Details

#test_simple_nowikiObject



8
9
10
11
12
13
14
15
16
17
# File 'app/models/chunks/nowiki_test.rb', line 8

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