[rspec-devel] [ rspec-Feature Requests-8698 ] --snippet option
noreply at rubyforge.org
noreply at rubyforge.org
Fri Feb 16 07:49:51 EST 2007
Feature Requests item #8698, was opened at 2007-02-16 07:49
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=8698&group_id=797
Category: runner module
Group: None
Status: Open
Priority: 3
Submitted By: Aslak Hellesøy (aslak_hellesoy)
Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: --snippet option
Initial Comment:
It would be extremely helpful if RSpec's output would include a snippet of the code that caused a spec to fail. Example:
1)
Spec::Expectations::ExpectationNotMetError in 'A stack (in general) should remove the top item when sent 'pop''
"b" should equal "d"
28. specify "should remove the top item when sent 'pop'" do
29. @stack.pop.should_equal "c"
30. @stack.pop.should_equal "d"
31. end
C:\dev\applications\ruby\lib\ruby\gems\1.8\gems\rspec-0.6.4\examples\stack_spec.rb:30:in `should remove the top item whe
n sent 'pop''
It would also be nice if the formatting of the snippet could be pluggable so that we could have it syntax highlighted in the HTML reports.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=8698&group_id=797
More information about the rspec-devel
mailing list