[rspec-users] Cucumber ".should contain(expected) does but fails anyway
dchelimsky at gmail.com
Wed Apr 22 15:18:13 EDT 2009
On Wed, Apr 22, 2009 at 2:09 PM, James Byrne <lists at ruby-forum.com> wrote:
> David Chelimsky wrote:
>> On Wed, Apr 22, 2009 at 1:45 PM, James Byrne <lists at ruby-forum.com>
>>> this worked:
>>> I am not throwing out RSpec or using it any less. �I just had to get
>>> � � � � � � got "<title>Bank of Canada: Noon Foreign Exchange
>>> � � �(equal?: expected object is not the object returned, did you mean
>>> � � � (Spec::Expectations::ExpectationNotMetError)
>> I can live with that. Do you want to make a patch? If not I'll just add
> I'll try and make a patch first. If that does not work out then I will
> beg a boon of you to do it.
> I think that the error message should change too. Instead of:
> expected "<title>Bank of Canada: Noon Foreign Exchange
> got "<title>Bank of Canada: Noon Foreign Exchange
> An equal? failure probably should return the metaclass like:
> expected "#<Class:#<String:0x2b6950315300>>"
> got "#<Class:#<String:0x2b695026e898>>"
> yada yada....
I like the idea, though I think it's helpful to also have the strings
in the case of String objects. But having the class and object id
would really help tell the story we're looking for.
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users