public
Description: Markaby patched to run on rails 2.0.2
Homepage: http://code.whytheluckystiff.net/markaby/
Clone URL: git://github.com/giraffesoft/markaby.git
DTD definition update.


git-svn-id: http://code.whytheluckystiff.net/svn/markaby/trunk@107 
2c81c6a9-7b7e-da11-ae0f-006097933fb5
enternet (author)
Mon Sep 10 09:12:02 -0700 2007
commit  a0cf34ca48cbbaec93743f32609af6819b428122
tree    f7d567a96ad356051727bb317c807e8b0cce3b65
parent  68db960ca7fc8155a64194b52179af905d729579
...
98
99
100
101
 
102
103
104
105
106
107
108
 
109
110
111
112
113
114
 
115
116
117
...
98
99
100
 
101
102
103
104
105
106
107
 
108
109
110
111
112
113
 
114
115
116
117
0
@@ -98,20 +98,20 @@ class MarkabyTest < Test::Unit::TestCase
0
   def test_full_doc_transitional
0
     doc = mab { xhtml_transitional { head { title 'OKay' } } }
0
     assert doc =~ /^<\?xml version="1.0" encoding="UTF-8"\?>/
0
- assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">})
0
+ assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">})
0
     assert doc.include?(%{<title>OKay</title>})
0
   end
0
 
0
   def test_full_doc_strict
0
     doc = mab { xhtml_strict { head { title 'OKay' } } }
0
     assert doc =~ /^<\?xml version="1.0" encoding="UTF-8"\?>/
0
- assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">})
0
+ assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">})
0
     assert doc.include?(%{<title>OKay</title>})
0
   end
0
   
0
   def test_root_attributes_can_be_changed
0
     doc = mab { xhtml_strict(:lang => 'fr') { head { title { 'Salut!' } } } }
0
- assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">})
0
+ assert doc.include?(%{"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">})
0
     assert doc.include?(%{<title>Salut!</title>})
0
     assert doc.include?(%{ lang="fr"})
0
   end

Comments

    No one has commented yet.