O'Reilly logo

Rails 4 Test Prescriptions by Noel Rappin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Have We Done? And What’s Next?

We’ve written an entire (albeit small) piece of Rails functionality, starting with an end-to-end integration test and moving down to unit tests to make each part of the feature work. And it took us only one chapter. It goes a lot faster when you don’t stop to explain every line of code.

In the next few chapters we’ll look at model testing, controller testing, and view testing, covering the libraries discussed in this chapter in more detail. We’ll also discuss related topics, such as placing data in tests, testing for security, and testing JavaScript. After that we’ll tackle some wider topics: how to test legacy code, how to keep your tests from becoming legacy code, how to test external services, and the like. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required