lib/site/body-rcov.rhtml in continuous4r-0.0.1 vs lib/site/body-rcov.rhtml in continuous4r-0.0.2

- old
+ new

@@ -1,18 +1,17 @@ <% require 'rubygems' require 'hpricot' - require 'XmlElements' %> <div id="bodyColumn"> <div class="contentBox"> <div class="section"><a name="rcov"></a> <% # chargement/modification du rapport rcov - doc = Hpricot(File.read("continuous4r_build/rcov/index.html")) + doc = Hpricot(File.read("#{Continuous4r::WORK_DIR}/rcov/coverage/index.html")) doc.search('//a') do |link| if link.inner_text.index('rcov').nil? - link.swap("<a target='_blank' href='rcov/#{link.attributes['href']}'>#{link.inner_text}</a>") + link.swap("<a target='_blank' href='rcov/coverage/#{link.attributes['href']}'>#{link.inner_text}</a>") end end %> <h2>Rcov Results</h2> <%= doc.search("style")[1].to_html %>