Everyday Rails Testing with RSpec

Everyday rails testing with rspec

0 reviews

Written by Aaron Sumner

Published by Leanpub

Dec, 2014

194 pages



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


Title: Everyday Rails Testing with RSpec
Author: Aaron Sumner
Language: English
Length: 194
Edition: 1
Publisher: Leanpub
Publication Date: 2014-12-20