Creating automated and instructional tests with RSpec



Published May 2017

Well made tests, to accurately test your code.

Automated testing has been around for years and for good reason. When working with complex apps, you can’t possibly re-test all the features after refactoring your code or introducing new ones. Automated tests make our lives as developers easier by doing all the dirty job for us. However, explaining instructions to tests isn’t always as easy as it sounds. Let’s teach you about how to write tests for various parts of your app.

For more on testing, you might be interested in Test-Driven Development in Node.js. Alternatively, Ruby Metaprogramming has you covered for more Ruby lessons.

Oh yeah, and the whole SitePoint library! Learn More.

What you'll learn

  • Learn to set up and work with RSpec testing
  • Create tests with RSpec
  • Learn about testing techniques
  • Closed captions available
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.

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

Leave a Review