RSpec Tests for Beginners

Use Patterns to Simplify Writing Tests for Your Rails App

Jlspursfan
Nov 4 · 8 min read

Spec tests appeared pretty daunting to me the first few times I approached them, but after awhile, certain patterns emerged and things began to fall into place. In this article, I want to walk through those patterns and provide other beginner programmers with a template for writing quality tests for their Rails applications. I’ll be covering the RSpec test suite and syntax in this article, but the concept of recognizing patterns should translate to any other test suite you are trying to…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account?

Jlspursfan

Written by

The Startup

Medium's largest active publication, followed by +542K people. Follow to join our community.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade