[rspec-devel] [ rspec-Feature Requests-10823 ] separate errors and failures in output

noreply at rubyforge.org noreply at rubyforge.org
Mon May 14 09:07:37 EDT 2007


Feature Requests item #10823, was opened at 2007-05-14 13:07
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=10823&group_id=797

Category: None
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: separate errors and failures in output

Initial Comment:
Observe the following output:

=========================
$ spec user_spec.rb --format specdoc

User
- should be in any roles assigned to it (ERROR - 1)
- should NOT be in any roles not assigned to it (FAILED - 2)

1)
NameError in 'User should be in any roles assigned to it'
undefined local variable or method `user' for #<#<Class:0x14eca2c>:0x14ec6a8>
./user_spec.rb:6:

2)
'User should NOT be in any roles not assigned to it' FAILED
expected in_role?("unassigned role") to return false, got true
./user_spec.rb:12:

Finished in 0.017713 seconds

2 examples, 2 failures
=========================

The specdoc output makes a distinction between errors that are raised (ERROR - 1) and logical failures (FAILED - 2), but the last line of the output does not (2 examples, 2 failures).

The last line should make the distinction the same way the detailed output does:

2 examples, 1 failure, 1 error


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=10823&group_id=797


More information about the rspec-devel mailing list