[rspec-devel] [ rspec-Bugs-13326 ] add a parameter will be more convenient
noreply at rubyforge.org
noreply at rubyforge.org
Fri Aug 24 05:39:05 EDT 2007
Bugs item #13326, was opened at 2007-08-24 17:39
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13326&group_id=797
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: xiaoming lin (linxiaoming)
Assigned to: Nobody (None)
Summary: add a parameter will be more convenient
Initial Comment:
Spec::Runner::Formatter::HtmlFormatter
class WebTestHtmlFormatter < Spec::Runner::Formatter::HtmlFormatter
def extra_failure_content(failure)
#print "aaa"
#print failure.to_s
#@output.puts "HTML source1"
@behaviour_red = true
move_progress
@output.puts " <dd class=\spec failed\>"
@output.puts " <span class=\failed_spec_name\>abcdefg</span>"
end
end
...
But I want to use the example object in WebTestHtmlFormatter。
but I can't accept the example object。
Is this a good idea?
#####def extra_failure_content(failure,example)####
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13326&group_id=797
More information about the rspec-devel
mailing list