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 |
#test_simple ⇒ Object
8 9 10 |
# File 'app/models/chunks/wiki_test.rb', line 8 def test_simple match(WikiChunk::Word, 'This is a WikiWord okay?', :page_name => 'WikiWord') end |
#test_simple_brackets ⇒ Object
18 19 20 21 22 |
# File 'app/models/chunks/wiki_test.rb', line 18 def test_simple_brackets match(WikiChunk::Link, 'This is a [[bracketted link]]', :page_name => 'bracketted link', :escaped_text => nil ) end |