Guest User

Untitled

a guest
Feb 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. describe UserSerializer do
  2. # A real world example might have the eager_loads defined as a class method like UserSerializer.eager_loads
  3. let(:eager_loads) { [cars: :companyyy] }
  4.  
  5. it 'eager loads correctly' do
  6. errors = EagerBeaver.new(User, eager_loads).errors
  7. expect(errors).to be_empty # failure: [companny is not an association of cars] is not empty
  8. end
  9. end
Add Comment
Please, Sign In to add comment