Everyday Rails Testing with RSpec

Have you gotten your hands dirty with a Rails application or two, but lack reliable test coverage? Does your application testing consist of a series of browser clicks, hoping you cover everything? Or do you just cross your fingers and hope for the best that everything will just work?
Don’t worry, everyone has been there at some point–and while testing and test-driven development are important aspects of Rails development, many tutorials gloss over these components. In Everyday Rails Testing with RSpec, I’ll show you how I got past that hurdle, increasing my code’s trustworthiness and saving untold time in browser-based testing.
Everyday Rails Testing with RSpec contains six chapters based on content from the Everyday Rails blog, along with six additional chapters exclusive to the book and complete code for a simple, but tested Rails application.
Table of Contents
Chapter 1. Introduction
Chapter 2. Setting up RSpec
Chapter 3. Model specs
Chapter 4. Generating test data with factories
Chapter 5. Basic controller specs
Chapter 6. Advanced controller specs
Chapter 7. Controller spec cleanup
Chapter 8. Feature specs
Chapter 9. Speeding up specs
Chapter 10. Testing the rest
Chapter 11. Toward test-driven development
Chapter 12. Parting advice


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s