Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Returning to a passing test suite

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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content