Sha256: 01b5b3841d87aa68d67c2baec2bf638601b72afa9e3236a7591aeb9bd98ca9fd
Contents?: true
Size: 874 Bytes
Versions: 6
Compression:
Stored size: 874 Bytes
Contents
require 'chunks/wiki' require 'chunks/match' require 'test/unit' class WikiTest < Test::Unit::TestCase include ChunkMatch def test_simple match(WikiChunk::Word, 'This is a WikiWord okay?', :page_name => 'WikiWord') end def test_escaped match(WikiChunk::Word, 'Do not link to an \EscapedWord', :page_name => 'EscapedWord', :escaped_text => 'EscapedWord' ) end def test_simple_brackets match(WikiChunk::Link, 'This is a [[bracketted link]]', :page_name => 'bracketted link', :escaped_text => nil ) end def test_complex_brackets match(WikiChunk::Link, 'This is a tricky link [[Sperberg-McQueen]]', :page_name => 'Sperberg-McQueen', :escaped_text => nil ) end # MDR: I'm not sure how to deal with this case just yet... # # def test_textile_link # assert_no_match(WikiChunk::Word.pattern, '"Here is a special link":SpecialLink') # end end
Version data entries
6 entries across 6 versions & 1 rubygems