Setting Up Automated Testing with RSpec


Part of Screencast Series: RSpec


Published November 2015

Don't give yourself a headache. Automate your Ruby tests.

Automated testing is really widespread these days and of course Ruby has its own set of tools. One of these is RSpec, an insanely popular tool for automated testing. The good thing about it is we can test nearly every aspect of the app with ease. If you don’t set up automated testing, you’ll end up having to manually re-test all the features of your app every time you refactor the code or add something new. For large apps this becomes really tedious!

In this screencast series we are going to have a look at using RSpec and supporting libraries like Capybara and FactoryGirl with Rails. You’ll even get to write your first spec!

SPONSORS
Setting Up Automated Testing with RSpec 18:48
Free Managing Sample Data with Fixtures and Factories 18:29
Free Testing Your Rails App Models with RSpec 17:06
Free Testing Views, Routes, and Helpers for Problems in Your Rails App 12:54
Free Ensure Functionality with RSpec Controller Testing 13:49
Free Feature Tests with RSpec: Simulate User Behavior and Test Your Ruby App 17:01

Comments

Have your say! or become a member now to take part in the discussion

Loading...
Meet your instructor
Ilya Bodrov-Krukowski

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.