Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your mobile phone number.

Rails Test Prescriptions (Pragmatic Programmers) 1st Edition

3.8 out of 5 stars 5 customer reviews
ISBN-13: 978-1934356647
ISBN-10: 1934356646
Why is ISBN important?
ISBN
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Have one to sell? Sell on Amazon
Buy new
$30.08
Only 1 left in stock.
Ships from and sold by Amazon.com. Gift-wrap available.
List Price: $34.95 Save: $4.87 (14%)
10 New from $7.32
Free Shipping for Prime Members | Fast, FREE Shipping with Amazon Prime
Rails Test Prescriptions ... has been added to your Cart
More Buying Choices
10 New from $7.32 23 Used from $0.01 1 Collectible from $9.80

There is a newer edition of this item:

Free Two-Day Shipping for College Students with Prime Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student


Dropbox Pro
With 1 TB of space and unrivaled sync, Dropbox Pro gives you plenty of room to keep everything safe and in one place. > Learn more
$30.08 Free Shipping for Prime Members | Fast, FREE Shipping with Amazon Prime Only 1 left in stock. Ships from and sold by Amazon.com. Gift-wrap available.
click to open popover

Frequently Bought Together

  • Rails Test Prescriptions (Pragmatic Programmers)
  • +
  • The RSpec Book: Behaviour Driven Development with RSpec, Cucumber, and Friends (Facets of Ruby)
Total price: $57.80
Buy the selected items together

Editorial Reviews

About the Author

NO_CONTENT_IN_FEATURE


Product Details

  • Series: Pragmatic Programmers
  • Paperback: 350 pages
  • Publisher: Pragmatic Bookshelf; 1 edition (March 7, 2011)
  • Language: English
  • ISBN-10: 1934356646
  • ISBN-13: 978-1934356647
  • Product Dimensions: 7.5 x 0.7 x 9 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Best Sellers Rank: #2,194,776 in Books (See Top 100 in Books)

Customer Reviews

Top Customer Reviews

Format: Paperback
Testing has been a gap in my Rails practice, and I got this book as part of a concerted effort to close that gap. I had some knowledge of the general options and types of testing that are available to Rails programmers, but like many who had come from other languages and frameworks, I didn't see the immediate necessity to incorporate testing into my work. But the reality is that testing is an important skill in the job market for Rails work, and I decided that I would take it seriously.

First off -- the book does do a creditable job of covering many options, and does a good job of delineating the differences between unit, functional, integration and acceptance testing - although it seems to go out of its way to blur the line between the latter two. Rails' own built-in Test::Unit is given a good introduction, as is what the author calls Controller testing. This is a reasonable name, but not necessarily the one you will encounter among the Rails community, and here is where one of the problems with this book arises.

Mr Rappin is not a gifted writer, and one problem is that his style lurches from conversational, "I remember trying this out" passages, to opaque, technical paragraphs that you may need some time to parse, or simply give up trying. The habit of drawing attention to his preferred naming conventions for things is part of the conversational part of the book that makes it read like course notes for a community college intro course.

And, Mr Rappin has not, it would seem, been granted the help of a top-notch editor. The book is replete with small typos, but more glaringly, with an at times bizarre approach to structure.
Read more ›
2 Comments 19 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
This is a great book if you're looking to understand:

(A) the various tools that can be used to test all the various parts of a Rails app
(B) how and when to use those tools.

This is a good overview of the "State of the Art", as of publication date, of the various testing technologies for Rails apps. It has good sections on the basic tools that come with Rails (the standard unit testing package and fixtures) including the often overlooked integration tests. Then it's on to the tools which don't come standard; Shoulda, RSpec, and Cucumber. The book does a good job of showing how to use these tools, and gives a thumbnail sketch of their philosophies, so you understand why they were built. The sections on the javascript and view testing tools Jasmine, WebRat and Capybara ("the rodents") are useful pointers towards what can be done with these tools, but it doesn't cover them in the same depth as some of the other tools.

I've found it to be a good tutorial, and a pretty good reference ("How do I set up an RSpec controller test again?"). Highly recommended.
Comment 6 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
I have been doing Rails programming for about a year and needed to add testing to my repertoire. I am about half way through the book and am disappointed with the number of examples that are not *in context* of an application. At the beginning of the book there were a handful of examples for a fictitious 'huddle' application. These examples where very helpful. However, the last few chapters (chapters 6,7,8,10) have had plenty of code samples, but these samples are outside the context of a real application, so they are not very helpful to the uninitiated. I am just getting to the section on RSpec, and there is code for a rspec version of huddle, so I am hopeful. What I am finding is that a majority of the book is more of reference manual, rather than a 'how do I use this in a real application'. Head First for Rails Testing anyone? If my impressions change any by the time I reach the end of he book (if I can make it) I will update this review.

Update: I finished the book, and my impressions did not change. Great reference manual, poor 'how to' manual.
Comment 2 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
The Rails testing landscape has blossomed far beyond Test Unit, and this book does a good job of describing the current alternatives, giving some background, pros, cons, and how to set up and use each one. Given the frequency with which many developers hop around, this book will prove invaluable in getting you up to speed quickly on whatever tools are being used in your new environment. It will also enable you to make informed decisions to use (or not use) something if you are starting from scratch.

As a final bonus, tech books are notorious sleep-inducers, but Noel has an excellent dry sense of humour that serves to turn this book into a smile-inducer instead.

We are finally realizing how important testing is, which makes this book a must-have for your coding toolbox (and career).
Comment 2 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
Noel has done a wonderful job aggregating, and curating the best rails practices and tools into one solid book.

It covers all the basics of unit testing, mocking, controllers, views, and gives nice gentle introductions to really helpful gems like webrat and others.

I also like how the book was broken up with sections dedicated to testing JavaScript and AJAX, along with a good intro to RSpec and behavior driven testing with Cucumber.

Whether you are a grizzled old testing vet, or you are just getting started with rails, Rails Test Prescriptions is bound to show you something you didn't know you could do before.
Comment One person found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Set up an Amazon Giveaway

Rails Test Prescriptions (Pragmatic Programmers)
Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more about Amazon Giveaway
This item: Rails Test Prescriptions (Pragmatic Programmers)