Rails 5 Test Prescriptions (PragProg)

Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with the regular application of test-driven development. You'll use Rails 5.2, Minitest 5, and RSpec 3.7, as well as popular testing libraries. Updates include Rails 5.2 system tests and Webpack integration. Side effects may include better code, fewer bugs, and happier developers.

Noel Rappin @noelrappin

Edited by Katharine Dvorak @katied

Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with the regular application of test-driven development. You’ll use Rails 5.2, Minitest 5, and RSpec 3.7, as well as popular testing libraries. Updates include Rails 5.2 system tests and Webpack integration. Side effects may include better code, fewer bugs, and happier developers.

With both practical code examples and discussion of why testing works, start with the most basic features delivered as part of core Ruby on Rails. Work with popular third-party testing tools such as RSpec, Jasmine, Cucumber, and factory_bot. Test the component parts of a Rails application, including the back-end model logic and the front-end display logic. Use testing to enable your code to respond better to future change.

This new edition has been updated to Rails 5.2 and RSpec 3.7 and contains full coverage of new Rails features.


“The essential resource for any developer testing Rails applications. It’s more than just a testing primer; developers will learn how to create optimal and efficient test suites for Rails.”

–Liz Abinante, Software Engineer, New Relic


  • 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:

2 Likes