Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) - When running rake spec:rcov, I''m getting the following: Finished in 245.717813 seconds 856 examples, 0 failures, 48 pending /usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private method `gsub'' called for 0:Fixnum (NoMethodError) from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in `[]='' from /usr/local/lib/ruby/1.8/rexml/element.rb:586:in `add_attribute'' from (eval):490:in `table_'' from (eval):490:in `each'' from (eval):490:in `table_'' from (eval):490:in `each'' from (eval):490:in `table_'' from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/ report.rb:702:in `format_overview'' ... 61 levels... from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ rcov.rb:628:in `dump_coverage_info'' from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ rcov.rb:628:in `each'' from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ rcov.rb:628:in `dump_coverage_info'' from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/bin/rcov: 405 Any ideas, or should I report this in the tracker? Scott
Since there is nothing RSpec in the backtrace this look like an RCov or REXML bug Aslak On 10/27/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) - > > When running rake spec:rcov, I''m getting the following: > > Finished in 245.717813 seconds > > 856 examples, 0 failures, 48 pending > /usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private > method `gsub'' called for 0:Fixnum (NoMethodError) > from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in `[]='' > from /usr/local/lib/ruby/1.8/rexml/element.rb:586:in > `add_attribute'' > from (eval):490:in `table_'' > from (eval):490:in `each'' > from (eval):490:in `table_'' > from (eval):490:in `each'' > from (eval):490:in `table_'' > from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/ > report.rb:702:in `format_overview'' > ... 61 levels... > from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ > rcov.rb:628:in `dump_coverage_info'' > from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ > rcov.rb:628:in `each'' > from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/ > rcov.rb:628:in `dump_coverage_info'' > from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/bin/rcov: > 405 > > Any ideas, or should I report this in the tracker? > > Scott > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Oct 27, 2007, at 5:10 PM, aslak hellesoy wrote:> Since there is nothing RSpec in the backtrace this look like an RCov > or REXML bug >Maybe it relates to the invalid XHTML. I''ll report back when that is fixed. Thanks Aslak, Scott
On Sat, 2007-10-27 at 13:10 -0400, Scott Taylor wrote:> Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) - > > When running rake spec:rcov, I''m getting the following: > > Finished in 245.717813 seconds > > 856 examples, 0 failures, 48 pending > /usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private > method `gsub'' called for 0:Fixnum (NoMethodError)I guess you are using a really new version of ruby? The latest patch levels seem to include a version of rexml that isn''t compatible with rcov. The rcov code thinks it can pass Fixnum''s as the value of an attribute while building the HTML summary page, but apparently the latest version of rexml no longer allows this. I haven''t had time to figure out if this change in rexml is intentional or not, and thus whether rexml or rcov needs fixing. Kind regards, Hans de Graaff -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rspec-users/attachments/20071101/b6679549/attachment.bin