Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe UserSerializer do
- # A real world example might have the eager_loads defined as a class method like UserSerializer.eager_loads
- let(:eager_loads) { [cars: :companyyy] }
- it 'eager loads correctly' do
- errors = EagerBeaver.new(User, eager_loads).errors
- expect(errors).to be_empty # failure: [companny is not an association of cars] is not empty
- end
- end
Add Comment
Please, Sign In to add comment