Effective Testing with RSpec 3 (Pragmatic Bookshelf)

PragmaticBookshelf
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


  • Full details: Search
  • 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 :+1:

19 1280 3

Latest Threads About This Book Top

PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
24 3409 12
New
belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
4 1149 1
New
PragmaticBookshelf
RSpec has been downloaded more than 80 million times and has inspired countless test frameworks in other languages. Myron Marston @...
19 1280 3
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

Most Active Last Three Years Top

PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
24 3409 12
New

Most Active Over Three Years Top

PragmaticBookshelf
RSpec has been downloaded more than 80 million times and has inspired countless test frameworks in other languages. Myron Marston @...
19 1280 3
New
belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
4 1149 1
New

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.