daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top