Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theine causes ActiveRecord::AssociationTypeMismatch #20

Open
ianks opened this issue Sep 18, 2015 · 3 comments
Open

Theine causes ActiveRecord::AssociationTypeMismatch #20

ianks opened this issue Sep 18, 2015 · 3 comments

Comments

@ianks
Copy link

ianks commented Sep 18, 2015

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.

@mrbrdo
Copy link
Owner

mrbrdo commented Sep 18, 2015

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

@joshsmoore
Copy link

I have the same problem with rails 4.2 and jruby 1.7.19

@mrbrdo
Copy link
Owner

mrbrdo commented Dec 7, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants