[Rspec-devel] habtm collections
dchelimsky at gmail.com
Sun Aug 27 10:25:55 EDT 2006
Looks like another sugary sweetness problem - a conflict between
rspec's use of method_missing and that of active_record:
TypeError in 'Animal should have person'
wrong argument type Animal (expected Module)
I've raised issue #5539 at rubyforge:
On 8/20/06, David Astels <dastels at daveastels.com> wrote:
> -----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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
> -----END PGP SIGNATURE-----
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
More information about the Rspec-devel