Wrap monkey patch of UserPreference in a 'config.to_prepare' block so it doesn't break in development if an other module monkey patches the same class
Migrate from Test::Unit to RSpec