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

Fix Rails 5.2.1 compatibility for this commit in ActiveRecord 5.2.1: … #32

Closed
wants to merge 1 commit into from
Closed

Conversation

OtherCroissant
Copy link

Due to this commit in ActiveRecord 5.2.1: rails/rails@6edf354#diff-c47e1c26ae8a3d486119e0cc91f40a30

you will get a undefined_method error for the method inversed_from, when assigning an association of a mock. Adding this method to the mock class resolves this problem.

@kreintjes
Copy link

Works for me!

@JonRowe
Copy link
Member

JonRowe commented Sep 17, 2018

Merged in with #33

@JonRowe JonRowe closed this Sep 17, 2018
@JonRowe
Copy link
Member

JonRowe commented Sep 17, 2018

Released as 1.1.0

cedum added a commit to nebulab/solidus that referenced this pull request Dec 18, 2018
Upgrades `RSpec::ActiveModel::Mocks` to version `~>1.1` which includes
the support for `inversed_from` when assigning an association for a mock.
See: rspec/rspec-activemodel-mocks#32
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

Successfully merging this pull request may close these issues.

3 participants