[rspec-devel] [ rspec-Bugs-8750 ] should[_not]_include backwards compatibility between 0.8.0-RC1 and 0.7.5.1 broken

noreply at rubyforge.org noreply at rubyforge.org
Sun Feb 18 18:08:38 EST 2007


Bugs item #8750, was opened at 2007-02-18 21:44
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8750&group_id=797

>Category: rails plugin
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Yurii Rashkovskii (yrashk)
>Assigned to: David Chelimsky (dchelimsky)
Summary: should[_not]_include backwards compatibility between 0.8.0-RC1 and 0.7.5.1 broken

Initial Comment:
should_include and should_not_include seems to not to be backwards compatible in 0.8.0-RC1 in case if executing this expectation against has_many:

class Document
  has_many :authors
end


@document.authors.should_include @homer_simpson

will fail with

wrong argument type Author (expected Module)

While it is easily fixed by moving to new syntax (@document.authors.should include(@homer_simpson)) it seems to not to be backwards compatible with 0.7.5.1

0.8.0-RC1 was declared to be backwards compatible with 0.7.5.1, that's why it is filed as a bug.

 

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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-02-18 23:08

Message:
Fixed in trunk rev 1504

I moved this over to the rails module category because this is one of those unfortunate Rails-Only problems (for normal collections, should_include was working fine).

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

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


More information about the rspec-devel mailing list