-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Model.find being called twice with acts_as_list on destroy #161
Comments
Seems this is being caused in:
Line 477
Does this need to call |
@npearson72 As a general advice, I'd recommend changing your test slightly to assert that |
Ok, thanks. But are you saying this isn't an issue? |
This is not an issue, it is necessary in order to be certain that the positions are correct after the destroy is done. |
That's correct. We now use |
I have a Category model that uses acts_as_list.
In my controller, I'm calling
Category.find(params[:id])
When I try to run my tests, for some reason
.find
is called twice.When I remove the
acts_as_list
method from my Category model, it works fine.For more context, please refer to my rspec mocks issue:
rspec/rspec-mocks#939
Any ideas?
The text was updated successfully, but these errors were encountered: