[rspec-devel] [ rspec-Bugs-8300 ] version 7.5.1 - error code returns 'nil'; should be 'ExpectationNotMet'
noreply at rubyforge.org
noreply at rubyforge.org
Mon Jan 29 17:47:56 EST 2007
Bugs item #8300, was opened at 2007-01-29 22:40
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8300&group_id=797
Category: expectation module
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 3
Submitted By: Ron Lambkin (rlambkin)
>Assigned to: David Chelimsky (dchelimsky)
Summary: version 7.5.1 - error code returns 'nil'; should be 'ExpectationNotMet'
Initial Comment:
-- stack_spec.rb
require File.dirname(__FILE__) + "/stack"
context "A new stack" do
setup do
@stack = Stack.new
end
specify "should be empty" do
@stack.should_be_empty
end
end
-- stack.rb
class Stack
def empty?
false
end
end
===========
$ spec stack_spec.rb -f s
A new stack
- should be empty (FAILED - 1)
1)
'A new stack should be empty' FAILED
#<Stack:0x2b2185194390> should be empty nil # <= wrong error message
./stack_spec.rb:7:
NOTE: correct error returned in version 7.5
----------------------------------------------------------------------
>Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-29 22:47
Message:
Duplicate of 8236
http://rubyforge.org/tracker/index.php?func=detail&aid=8236&group_id=797&atid=3149
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8300&group_id=797
More information about the rspec-devel
mailing list