Tag Archives: ruby

Failing fast in rails with a smoke test initializer

The Rails app that I’m working on has a dependency on ImageMagick. In fact, if ImageMagick is either missing or broken in the app’s environment, the app is beyond repair and Rails shouldn’t even start. To achieve this, I have added an initializer under config/initializers/dependency_tests.rb: Note: this particular example is specific to ruby 1.9.3 (in […]