theine icon indicating copy to clipboard operation
theine copied to clipboard

Theine causes ActiveRecord::AssociationTypeMismatch

Open ianks opened this issue 10 years ago • 3 comments

When running my test suite through theine rspec, the test suit fails with a common issue that looks like this:

ActiveRecord::AssociationTypeMismatch:
  User(#14416) expected, got User(#14418)

This only happens when using FactoryGirl to build objects. The type of class that factory girl build does not seem to match the expected class. I am confirmed this issue does not happen on JRuby-9.0.1.0 without theine.

ianks avatar Sep 18 '15 18:09 ianks

Looks to me like something is causing your code to be reloaded. I have not tested with jruby 9k

mrbrdo avatar Sep 18 '15 19:09 mrbrdo

I have the same problem with rails 4.2 and jruby 1.7.19

joshsmoore avatar Dec 07 '15 00:12 joshsmoore

I am trying to get support for JRuby into spring: https://github.com/rails/spring/pull/449 Waiting on JRuby 9.0.5.0 to get released which should include some necessary features for that.

mrbrdo avatar Dec 07 '15 01:12 mrbrdo