Class: WikiTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- WikiTest
- Includes:
- ChunkMatch
- Defined in:
- app/models/chunks/wiki_test.rb
Instance Method Summary collapse
- #test_complex_brackets ⇒ Object
- #test_escaped ⇒ Object
- #test_simple ⇒ Object
- #test_simple_brackets ⇒ Object
Methods included from ChunkMatch
Instance Method Details
#test_complex_brackets ⇒ Object
24 25 26 27 28 |
# File 'app/models/chunks/wiki_test.rb', line 24 def test_complex_brackets match(WikiChunk::Link, 'This is a tricky link [[Sperberg-McQueen]]', :page_name => 'Sperberg-McQueen', :escaped_text => nil ) end |
#test_escaped ⇒ Object
12 13 14 15 16 |
# File 'app/models/chunks/wiki_test.rb', line 12 def test_escaped match(WikiChunk::Word, 'Do not link to an \EscapedWord', :page_name => 'EscapedWord', :escaped_text => 'EscapedWord' ) end |