You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# in spec - this will throw an errorlet!(:foo1){CoreFoo.create}let(:bar3){CoreBar.createcore_foo: foo1}let(:bar4){CoreBar.createcore_foo: foo1}beforedobar3bar4endcontext'with normal id'doit'should behave like normal AR'doexpect(foo1.core_bars.find(bar3.id)).toeqbar3endend
Error
NameError:
undefined local variable or method `hashids' for #<ActiveRecord::Associations::CollectionProxy []>
Expected Output:
When using integer id or the real id, find should run without first try to encode to hashid and return the record
The text was updated successfully, but these errors were encountered:
Description:
Given class as below
In spec this will throw an error
Error
Expected Output:
When using integer id or the real id,
find
should run without first try to encode tohashid
and return the recordThe text was updated successfully, but these errors were encountered: