Your Ruby on Rails application is sick. Deadlines are looming, but every time you make the slightest change to the code, something else breaks. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Plus, it has bugs. You need test-driven development, a process for improving the design, maintainability, and long-term viability of software. Table XI's Senior Developer & Agile Coach, Noel Rappin, can help.
Noel’s most recent book, Rails 4 Test Prescriptions: Build a Healthy Codebase, hit the Pragmatic Bookshelf this week. The book starts with the most basic testing features that are part of core Ruby on Rails. Once you’ve integrated testing features into your coding practice, you’ll learn how to use popular third-party testing tools such as RSpec (it’s the first to cover RSpec 3), Capybara, Cucumber, and factory_girl. You’ll test the component parts of a Rails application, including the back-end model logic and the front-end display logic. Using Rails examples, you’ll learn how to use testing to enable your code to respond better to future change. Plus, you’ll see how to handle real-world testing situations.
You can learn more about the Rails 4 Test Prescriptions and pick up your copy here.
Published by: Kate Garmey in Developers