Shop now Learn more Shop now Shop All Amazon Fashion Shop Suki Ad Campaign Pieces Cloud Drive Photos Shop now Amazon Fire TV Shop now Shop now Shop Fire Shop Kindle Voyage Listen in Prime Discover more Shop now
Start reading The RSpec Book: Behaviour Driven Development with RSpec,... on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

The RSpec Book: Behaviour Driven Development with RSpec, Cucumber, and Friends (The Facets of Ruby Series) [Kindle Edition]

David Chelimsky , Dave Astels , Bryan Helmkamp , Dan North , Zach Dennis , Aslak Hellesoy
4.8 out of 5 stars  See all reviews (5 customer reviews)

Print List Price: £25.99
Kindle Price: £24.69 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £1.30 (5%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.


Amazon Price New from Used from
Kindle Edition £24.69  
Paperback £25.99  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Book Description

Behaviour-Driven Development (BDD) gives you the best of Test Driven Development, Domain Driven Design, and Acceptance Test Driven Planning techniques, so you can create better software with self-documenting, executable tests that bring users and developers together with a common language.

Get the most out of BDD in Ruby with The RSpec Book, written by the lead developer of RSpec, David Chelimsky.

You'll get started right away with RSpec 2 and Cucumber by developing a simple game, using Cucumber to express high-level requirements in language your customer understands, and RSpec to express more granular requirements that focus on the behavior of individual objects in the system. You'll learn how to use test doubles (mocks and stubs) to control the environment and focus the RSpec examples on one object at a time, and how to customize RSpec to "speak" in the language of your domain.

You'll develop Rails 3 applications and use companion tools such as Webrat and Selenium to express requirements for web applications both in memory and in the browser. And you'll learn to specify Rails views, controllers, and models, each in complete isolation from the other.

Whether you're developing applications, frameworks, or the libraries that power them, The RSpec Book will help you write better code, better tests, and deliver better software to happier users.

Customers Who Bought This Item Also Bought

Page of Start over
This shopping feature will continue to load items. In order to navigate out of this carousel please use your heading shortcut key to navigate to the next or previous heading.

Product Description


""Some authors would be satisfied with just writing the definitive guide for a technology. These folks go a step further, and show you insider tips that will keep your tests clean and maintainable.""--Ian Dees, Software Engineer ""The second generation of tools for the XP generation explained by their creators and maintainers. Awesome, a must read.""--Marcus Ahvne, software developer, Valtech""The RSpec Book teaches you much more than how to use RSpec's features; it teaches you how to write code the way the RSpec team does: patiently, and with great precision and clarity. There is something here for everyone: beginners are given plenty of gentle attention but there is some real meat for the more experienced reader to chew on, too.""--Matt Wynn, independent programmer and coach

About the Author

David Chelimsky is the lead developer/maintainer of RSpec, and has contributed to several other open source projects including Cucumber, Aruba, and Rails. He has been developing software for over a decade, including three years training and mentoring agile teams at Object Mentor. He is currently a Senior Software Engineer at DRW Trading Group in Chicago, IL. In his spare time, David likes to play guitar, travel, and speak something resembling Portuguese.

Dave Astels is the Director of Technology at and has been involved with software and computing for over 25 years, recently having spent several years working exclusively with Ruby and Rails. Dave wrote the article that prompted Steven Baker to start the RSpec project.

Bryan Helmkamp maintains Webrat, a Ruby library to implement acceptance tests for web applications in an expressive and maintainable way, and is an active participant in the New York City Ruby community. Bryan is the CTO of Efficiency 2.0, a startup that helps people understand and reduce their energy use.

Dan North writes software and coaches teams and organizations in agile and lean methods. He believes that most problems that teams face are about communication and understanding, which is why he puts so much emphasis on "getting the words right." In 2003-4 this led him to develop the ideas that would become Behaviour-Driven Development. He is delighted by the community that has grown up around RSpec and Cucumber, and especially the enthusiasm and dedication of their core contributors. Dan is currently a Senior Software Engineer at DRW Trading Group in London, where he gets to actually code again!

Zach Dennis is a co-founder and fellow human at Mutually Human Software, an expert custom software strategy and design consultancy in Grand Rapids, Michigan. He has been enjoying Ruby for nearly eight years and has contributed to several projects such as Ruby's standard library documentation, Ruby on Rails, and RSpec. In his spare time, Zach loves spending time with his family, continuously learning, playing music, and running

Aslak Hellesoy is a Senior Software Engineer at DRW Trading Group in London. While contributing to this book he was the Chief Scientist of BEKK Consulting in Oslo. In 2003, after seven years of professional Java programming, he fell in love with Ruby. He has contributed to dozens of open source projects and is the founder of the Cucumberproject. Aslak likes to cook, ski, and travel.

Product details

  • Format: Kindle Edition
  • File Size: 925 KB
  • Print Length: 448 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: Pragmatic Bookshelf; 1 edition (15 Dec. 2010)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B00A32NY44
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Enhanced Typesetting: Not Enabled
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: #169,623 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Authors

Discover books, learn about writers, and more.

Customer Reviews

3 star
2 star
1 star
4.8 out of 5 stars
4.8 out of 5 stars
Most Helpful Customer Reviews
3 of 3 people found the following review helpful
5.0 out of 5 stars Excellent book, but not just a manual for RSpec 19 July 2011
An excellent, clear and well-written book which was exactly what I needed.

However it is a little unusual. It's called "The RSpec book" but it's more than just a manual or HOWTO for RSpec. It attempts to teach you RSpec in the context of the BDD methodology and the other tools you'll likely use (or the Authors think you should use...) at the same time. So the first example in the book has you writing Cucumber for a chapter before you even get to see any RSpec code. And it has several chapters which are pure theory; a description and justification of the BDD approach to development.

I wrote my first Cucumber features and my first RSpec tests while referring to this book and I still re-read sections as needed. For me as a newbie to BDD in Ruby this "RSpec in a wider context" approach was exactly what I wanted. And the pure RSpec chapters are both complete, and high-quality technical writing. But if you're just looking for a book on RSpec this one might not be quite what you were expecting.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars One of the best books on BDD and code testing 24 Mar. 2012
Format:Paperback|Verified Purchase
I recently read "The RSpec book" and I must say that it's one of the best technical books I've read in a long time.

It starts out with light introduction to BDD and then it keeps the reader engaged by presenting clear examples on how to use RSpec and Cucumber.

Throughout the examples they explain the philosophy of BDD and great concepts like "Red/Green/Refactor" that in my opinion should be engraved in every programmer's brain.

The chapters on Rspec Expectations and Mocks are so good that I've read them twice and the examples they provide really show why we should use mocks and stubs to isolate certain components of our code.

I really recommend this book to every programmer and even if you're not programming in Ruby you'll get a really nice overview of every aspect of BDD and the concepts behind code testing.

Clear, precise...recommended!

PS: This review was also posted in my blog (
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Fall in Love with BDD and Programming 9 Dec. 2010
Thank you for this wonderful introduction to Behavior-Driven Development (BDD) with the awesome Cucumber and RSpec tools.

I have been using this book since early on in it's beta state, and it's still the first place I turn to when I have a question about one thing or another. In other words, this book spans the gap between first-time users and seasoned BDD-ers.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Love it 26 Aug. 2013
Format:Paperback|Verified Purchase
An awesome intro to BDD and the agile process. I'm currently only halfway through the book, but I can already feel myself levelling up just from reading this book following the exercises. Cucumber plays as large a part as Rspec so far, so buy this book before the Cucumber ones to gain a decent grounding before hitting the more in-depth stuff.
Comment | 
Was this review helpful to you?
4.0 out of 5 stars Very helpful 18 Mar. 2013
By meh
Format:Paperback|Verified Purchase
A really good introduction to test driven development and behaviour driven development. Definitely not just for Rubyists, this is a great book for anyone wanting to test their software.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Search Customer Reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category