{"product_id":"9781934356647","title":"Rails Test Prescriptions: Keeping Your Application Healthy","description":"\u003cp\u003e\u003ci\u003eRails Test Prescriptions\u003c\/i\u003e is a comprehensive guide to testing Rails applications, covering Test-Driven Development from both a theoretical perspective (why to test) and from a practical perspective (how to test effectively). It covers the core Rails testing tools and procedures for Rails 2 and Rails 3, and introduces popular add-ons, including Cucumber, Shoulda, Machinist, Mocha, and Rcov.\u003c\/p\u003e\u003cp\u003eYour Ruby on Rails application is sick. It's got bugs. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Deadlines are looming, but every time you make the slightest change to the code, something else breaks.\u003c\/p\u003e\u003cp\u003eYou need Test-Driven Development (TDD), a proven process for improving the design, maintainability, and long-term viability of software. In TDD, the tests come first, and then code is written to match the expectation of the test. Using TDD means writing better code faster.\u003c\/p\u003e\u003cp\u003eRuby on Rails has unparalleled support for TDD. In addition to the tools that Rails has built-in, a large and thriving testing community adds new tools at an accelerating rate. \u003ci\u003eRails Test Prescriptions\u003c\/i\u003e is your guide to the entire Rails testing ecosystem.\u003c\/p\u003e\u003cp\u003eContaining both practical code examples and discussion of why testing works, this book starts with the most basic features delivered as part of core Ruby on Rails. Once you've integrated those features into your coding practice, you'll want to use popular third-party testing tools such as RSpec, Shoulda, Cucumber, Factory Girl, and Rcov. \u003ci\u003eRails Test Prescriptions\u003c\/i\u003e will show you how to use these tools and when they are appropriate. \u003ci\u003eRails Test Prescriptions\u003c\/i\u003e will cover both the current Rails 2.3.x version as well as the initial 3.0 release.\u003c\/p\u003e\u003cp\u003eIf you are a Rails programmer who tests code, this book is an invaluable guide to the latest in available testing tools. If you are a Rails programmer who doesn't test code, then start testing immediately: this book can help.\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e","brand":"Pragmatic Programmers, LLC, The","offers":[{"title":"Default Title","offer_id":47033345179888,"sku":"9781934356647","price":28.5,"currency_code":"USD","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0737\/7593\/9824\/files\/9781934356647_p0.jpg?v=1763656379","url":"https:\/\/shop-qa.barnesandnoble.com\/products\/9781934356647","provider":"Barnes \u0026 Noble (DEV)","version":"1.0","type":"link"}