Published December 2015
Controller testing, in contrast to model testing, may seem complex at first, however understanding the basic workflow you will get the grip of it really fast. 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.
You can get the code samples from GitHub: https://github.com/learnable-content/RSpec-collection/tree/controller_testing
Ilya is a lecturer at MATI-RSTU, senior engineer at Campaigner LLC and seasoned author at SitePoint. When Ilya is not working away on new projects or contributing to open source projects, he's expanding and refining his skills in HTML, CSS, jQuery, Angular, Backbone and Rails. You can read all about his work and development discoveries on his blog Radiant Wind.