Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Amrita 1.0.2 fails its unit tests
Ben Gribaudo
1/12/2006 4:40:00 PM
Hi folks,
Amrita 1.0.2 fails 5 of its unit tests when I run them. After
downloading a fresh copy of Amrita, uncompressing it and uploading it to
an Ubuntu 5.10 box, I received the test failures below.
Any idea why I receive these errors? It would seem this package should
pass its test out of the box.
Thanks,
Ben
1) Error:
TestTemplate#test_template_file2:
NameError: uninitialized constant REXML::File
./lib/amrita/xml.rb:101:in `parse_file'
./lib/amrita/template.rb:274:in `load_template'
./lib/amrita/template.rb:208:in `setup_template'
./lib/amrita/template.rb:115:in `expand'
test/testtemplate.rb:120:in `test_template_file2'
/usr/lib/ruby/1.8/runit/testcase.rb:42:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
2) Failure:
TestFormat2#test_expand_by_proc2
[test/testformat2.rb:189:in `test_expand_by_proc2'
/usr/lib/ruby/1.8/runit/testcase.rb:42:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run']:
<"\n<li color=\"blue\">0</li>\n<li color=\"red\">1</li>\n<li
color=\"blue\">2</li>\n<li color=\"red\">3</li>\n<li
color=\"blue\">4</li>\n<li color=\"red\">5</li>"> expected but was
<"<li color=\"blue\">0</li><li color=\"red\">1</li><li
color=\"blue\">2</li><li color=\"red\">3</li><li
color=\"blue\">4</li><li color=\"red\">5</li>">.
3) Failure:
TestParts#test_parts_withcache
[test/testparts.rb:156:in `test_parts_withcache'
/usr/lib/ruby/1.8/runit/testcase.rb:42:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run']:
<"<p><em>xxx</em></p>"> expected but was
<"<p>#<TestParts::EMText:0xb7b537bc></p>">.
4) Failure:
TestXML#test_listener
[test/testxml.rb:42:in `test_listener'
/usr/lib/ruby/1.8/runit/testcase.rb:42:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run']:
<"<?xml version=\"1.0\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\"
\"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transi...
\"><html
xmlns=\"
http://www.w3.org/...
\"> <head> <title>xhtml
sample</title> </head> <body> <h1 id=\"title\">title</h1> <p
id=\"body\">body text</p> <hr> </body> </html>"> expected but was
<"<?xml version=\"1.0\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\"
\"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transi...
\"><html
xmlns=\"
http://www.w3.org/...
\"> <head> <title>xhtml
sample</title> </head> <body> <h1 id=\"title\">title</h1> <p
id=\"body\">body text</p> <hr> </body> </html> ">.
5) Error:
TestXML#test_amx1:
NameError: uninitialized constant REXML::File
./lib/amrita/amx.rb:59:in `[]'
test/testxml.rb:103:in `test_amx1'
/usr/lib/ruby/1.8/runit/testcase.rb:42:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
/usr/lib/ruby/1.8/runit/testsuite.rb:23:in `run'
140 tests, 881 assertions, 3 failures, 2 errors:
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Amrita 1.0.2 fails its unit tests
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password