small medium large xlarge

Effective Testing with RSpec 3: Build Ruby Apps with Confidence

February 15, 2017

ENIAC, the first real, electronic, computer, was officially launched on this day in 1946—seventy one years ago. Relatively speaking, we're still very new at this whole "computer" thing; still trying to discover better ways of creating software to fuel our world.

One "newer" technique you might find successful is a BDD-style outside-in workflow using RSpec, the popular Ruby testing framework. Download that, and then come and read the techniques and strategies that will make it work for you in Effective Testing with RSpec 3: Build Ruby Apps with Confidence.

Don't have time to read a whole book?

In that case, consider that in this hyper-competitive, globally-scoped economy, that one who doesn't read has no advantage over one who can't read.

And then come and get this book today from Don't wait.

Effective Testing with RSpec 3: Build Ruby Apps with Confidence

RSpec has been downloaded more than 40 million times. Find out how to use this influential Ruby testing framework to iteratively develop a project with the confidence that comes from well-tested code. Effective Testing With RSpec 3 guides you through developing a Ruby project with RSpec, and then explores the individual components in more detail.

First, learn 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 that support evolutionary design through refactoring. The rest of the book provides the definitive guide to RSpec's components. Use RSpec::Core's metadata to slice and dice your spec suite in flexible ways. Dig into RSpec::Expectation's matchers, which can be composed in flexible ways to precisely specify expected outcomes and get good failure messages that help you quickly diagnose the problem. Write fast, isolated tests with RSpec::Mocks test doubles while pushing your code toward simpler interfaces.

The authors, with a combined 20 years of automated testing experience, share useful, actionable testing advice that will help you have a fun, productive testing experience.

Now available from

Upcoming Author Appearances

  • 2017-02-24 Erica Sadun, PlaygroundsCon (remote talk, I’ll be talking on the 23rd but it will be the 24th in Australia)
  • 2017-03-02 Erica Sadun, Forward Swift 2
  • 2017-03-02 Chris Adamson, Forward Swift
  • 2017-03-07 Sandy Mamoli, Agile India 2017
  • 2017-03-09 Sandy Mamoli, Agile India 2017
  • 2017-03-23 Dave Thomas, GOTO Nights Chicago
  • 2017-03-25 Dave Thomas, Erlang Factory San Francisco
  • 2017-03-29 Andrew Hunt, The GROWS™ Method Workshop: Grow Skill, Grow Code
  • 2017-03-30 Janie Clayton, iOSCon 2017, London, England
  • 2017-04-21 Chris Adamson, CocoaConf Chicago
  • 2017-04-21 Janie Clayton, CocoaConf Chicago
  • Don't Get Left Out

    Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

    Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:

    Tell your friends! Tweet this

    Follow us on Twitter: @pragprog, @pragpub, Andy Hunt @PragmaticAndy.

    Coming Soon:

    • Design It! From Programmer to Software Architect
    • A Common Sense Intro to Data Structures and Algorithms
    • Elixir and Phoenix

    Recently Released:

    Thanks for your continued support,

    Andy Hunt Publisher, Pragmatic Bookshelf

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts