Ruby
Article
By Ilya Bodrov-Krukowski

Watch: Controller Testing with Ruby

By Ilya Bodrov-Krukowski

In contrast to model testing, controller testing may seem complex at first. That being said, understanding the basic workflow will allows you to get a grip of it — quickly. In this video you will learn how to write controller specs and isolate them from other parts of your application with the help of mocks and stubs.

This is only one video from our RSpec collection, but there are more to learn from. Check it out!

You can get the code samples from GitHub.

--ADVERTISEMENT--

Loading the player…

Recommended
Sponsors
Get the latest in Ruby, once a week, for free.