[rspec-users] AssociationTypeMismatch with RSpec 1.0.8, autotest running with drb

aslak hellesoy aslak.hellesoy at gmail.com
Tue Aug 14 15:20:36 EDT 2007

On 8/14/07, Edward Ocampo-Gooding <edward.og at gmail.com> wrote:
> Before I chalk this up as a bug and report it, I just want to make sure I'm not
> doing something silly.
> Running ZenTest's autotest on OS 10.4.10 with RSpec 1.0.8, drb, produces the
> following failed test:
> ActiveRecord::AssociationTypeMismatch in 'User should create an avatar with
> uploaded_data'
> Avatar expected, got Avatar
> This only happens with that exact configuration; turning off drb will fix it, as
> will running 'rake spec' instead.

What if you run with drb *without* autotest? Does it pass the first
time and fail the second time?
If that's the case, it could have something to do with the reloading
of AR classes. Have you tried with different versions of Rails?


> I saw something like this in Brian's post here
> [http://rubyforge.org/pipermail/rspec-devel/2007-June/003032.html] but it's a
> little strange that it only gets triggered in this exact setup.
> Any ideas why?
> Edward
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list