[Rspec-devel] habtm collections

David Astels dastels at daveastels.com
Sun Aug 20 19:09:53 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It looks like we need better support for habtm virtual collections...  
at least based on the behaviour I'm seeing.

For example, instead of doing:

	@dave.tracks.should_include Track.find_by_name("School's Out")

I have to do:

	@dave.tracks.include?(Track.find_by_name("School's Out")).should_be  
true

Yuck.

Dave

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFE6OvBauez/L4x7g4RAlGaAKCUjKFYUlRuu8KoRxedgPMtFtXwXQCfRZ7x
1vgNY50aZK+phkDhAEUXVnk=
=29QJ
-----END PGP SIGNATURE-----


More information about the Rspec-devel mailing list