Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > RubyGems - Tests fail on Gem install only

Reply
Thread Tools

RubyGems - Tests fail on Gem install only

 
 
Ross Bamford
Guest
Posts: n/a
 
      11-30-2005
Hi,

I'm trying to package up a new version of my app's Gem, but am having a
bit of a mindbending problem with installing the Gem, specifically running:

gem install --test [package-base-name]

(with the package in the same directory)

performs the installation, but gives me 1 error on the unit-tests, which I
wouldn't mind but they all pass when I run them from Rake, in the project.
I tried also with testrb (all pass) and also with Rake in the unpacked
installed Gem directory (again, all pass).

I think I managed to track it down to a specific place in the code, which
is the following (I'm pretty sure, but I couldn't find a way to get Gems
to give an error backtrace for this - I just did some puts debugging):

require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'

# ...

p = SM::SimpleMarkup.new
h = SM::ToHtml.new
result = p.convert(result, h)

(Extracted from
http://rubyforge.org/cgi-bin/viewcvs...5&cvsroot=rote)

I put a begin/rescue around the failing test-case, and 'p'd the exception
out, which gave me:

#<RuntimeError: Unhandled special: Special: type=17, text="RDoc">

As I say, this doesn't appear at all when running tests from Rake or with
testrb, and RDoc rendering works fine the rest of the time. If anyone can
shed any light, I'd be most grateful

(Also, as an aside, should I be considering this a big problem? Is it
common to run tests while installing a Gem, or do most people run them
separately as needed? Also, does Gem keep error reports and so on from
installations, for future reference?)

Thanks in advance for any help,

--
Ross Bamford -
 
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
I totally messed up rubygems (deleted the sources gem) and now Ican't install any gem anymore kazaam Ruby 1 11-01-2007 07:28 PM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
CGI::Session install tests fail, can I ignore? usenet@isbd.co.uk Perl Misc 5 11-25-2005 01:32 PM
ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find rubygems-upodate (> 0) in the repository han Ruby 1 10-24-2005 10:28 PM
Problems with fresh install of RubyGems on Ubuntu Linux: No suchfile to load -- rubygems/builder (LoadError) Trevor Ruby 5 01-29-2005 12:52 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57