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

The World Is a Service

Once you get used to the idea of having adapters mediate access between your application and external services, it’s not that far a leap to have adapters internally to mediate between different parts of your application. This approach is sometimes called hexagonal architecture, and there are many, many resources online describing hexagonal architecture as it applies to Rails (such as http://victorsavkin.com/post/42542190528/hexagonal-architecture-for-rails-developers). At the same time you can find many, many resources online saying that hexagonal architecture is an awful idea. (David Heinemeier Hansson is a particularly vocal critic.)

We’ve taken baby steps in this direction by creating action objects such as CreatesProject ...

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