Okay. I am feeling really stupid. One should not extend
a class with a module, but include
that module. Obviously.
# Tested with:
class DeployableDouble
include Deployable
end
One of these things that you oversee once written. Also, extending the ActiveRecord::Base
is not needed, since state_machine is just plain old Ruby and works on a generic Ruby Object.