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
- Full details: https://pragprog.com/book/rspec3/effective-testing-with-rspec-3
- View this book’s portal and details on how to post errata and suggestions here.
Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout