Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Amrita 1.0.2 fails its unit tests

Reply
Thread Tools

Amrita 1.0.2 fails its unit tests

 
 
Ben Gribaudo
Guest
Posts: n/a
 
      01-12-2006
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>#&lt;TestParts::EMText:0xb7b537bc&gt;</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-transitional.dtd\"><html
xmlns=\"http://www.w3.org/1999/xhtml\"> <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-transitional.dtd\"><html
xmlns=\"http://www.w3.org/1999/xhtml\"> <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:



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 14 04-03-2010 10:08 AM
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 0 04-01-2010 10:25 PM
Its a bird, its a plane, no ummm, its a Ruide thunk Ruby 1 03-30-2010 11:10 AM
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM
Is there a web templating system like ruby's amrita ? Lothar Scholz Python 2 09-15-2003 04:08 PM



Advertisments