2min chapter

Elixir Mix cover image

Combining GraphQL and LiveView with Abul Asar Sayyad - EMX 182

Elixir Mix

CHAPTER

Ruby on Rails for Unit Testing Live View

The mock just makes life so much easier for unit testing live view. I think the best way to test the rendered HTML, both in live view and long live view way is a browser test. And we use a capybara for that Ruby on Rails. So you can write all of your HTML expectations, what happens when you click this button, where it gets redirected all of that in rspec Ruby.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode