RailsConf 2015 - Understanding Rails test types in RSpec

preview_player
Показать описание
By, Sam Phippen
Getting started with testing Rails applications can be a frought process. There are a range of different test types that one can write. It's often not clear which type one wants. Without care your tests can begin testing the same behaviour. This is problematic.

In this talk we'll cover the most common types of test you'll encounter in your Rails applications: feature, controller and model. We'll also talk about ways you can design your tests to ensure your suite is robust to changes in your system. If you'd love to learn more about RSpec, Rails, and testing this talk will be great for you.

Help us caption & translate this video!

Рекомендации по теме
Комментарии
Автор

Thanks RailsConf, Sam, and ConFreaks. Years later still showing this to new folks.

Chris_Mc.
Автор

I was expecting feature specs vs request specs vs controller specs vs routing specs vs ...

on_the_same_page
Автор

"Tea is supposed to look like THIS!"
>shows coffee

ok boomer

Klayperson
Автор

Sam,

Nice talk, though your "Eagle vs. Lion & Unicorn" theory has a couple of problems. See 1775-1783 and 1812-1815 for more information. ;-) That said, you're absolutely right about sweet tea.

JerryHilts
Автор

I thought this is what integration test are for?

stevestevenson