Effective Testing with RSpec 3 (PragProg)

RSpec has been downloaded more than 80 million times and has inspired countless test frameworks in other languages.

Myron Marston @myronmarston and Erin Dees @undees

Edited by Jacquelyn Carter @jkcarter

RSpec has been downloaded more than 80 million times and has inspired countless test frameworks in other languages. Use this influential Ruby testing framework to iteratively develop a project with the confidence that comes from well-tested code. This book guides you through creating a Ruby project with RSpec 3, and explores the individual components in detail.

Start by learning the basics of installing and using RSpec. Then build a real-world JSON API, using RSpec throughout the process to drive a BDD-style outside-in workflow. Apply an effective test strategy to write fast, robust tests. Use rspec-core’s metadata to slice and dice your spec suite. Dig into rspec-expectations’ matchers. Write fast, isolated tests with rspec-mocks’ test doubles while pushing your code toward simpler interfaces.

RSpec’s lead developer shares testing wisdom that will lead to a fun, productive testing experience.


"This book contains everything you need to learn not only how RSpec works, but how to test effectively with the framework. If you’re looking to get better at working with the framework, I could not recommend this book more heartily."

–Penelope Phippen, RSpec core team member


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

3 Likes

Ahoy ahoy! Co-author of the book here (my name’s been Erin since late 2017 :wink:). Welcome, readers!

5 Likes

:wave:…and I’m the other Co-author of this book. Let us know if you have any questions or feedback!

5 Likes

I started to read the book a year a go or so. Something else interrupted my studies. But I loved it and will continue (or rather start over) when I find time. I totally dig the cover!

5 Likes