April 2018
Beginner to intermediate
406 pages
9h 33m
English
We also have a few random test failures that we'll want to correct very quickly before we close out this chapter. The first is a result of us adding new preloads:
1) test polls show_poll/1 returns a specific poll (Vocial.VotesTest) test/vocial/votes/votes_test.exs:62 Assertion with == failed code: assert Votes.get_poll(poll.id()) == poll left: %Vocial.Votes.Poll{__meta__: #Ecto.Schema.Metadata<:loaded, "polls">, id: 84, image: nil, inserted_at: ~N[2018-02-06 16:33:20.390976], options: [], title: "Hello", updated_at: ~N[2018-02-06 16:33:20.390987], user: #Ecto.Association.NotLoaded<association :user is not loaded>, user_id: 131, vote_records: [], messages: []} right: %Vocial.Votes.Poll{__meta__: #Ecto.Schema.Metadata<:loaded, ...